MCPcopy Create free account
hub / github.com/jwtk/jjwt / toStringArray

Method toStringArray

api/src/main/java/io/jsonwebtoken/lang/Strings.java:985–990  ·  view source on GitHub ↗

Copy the given Collection into a String array. The Collection must contain String elements only. @param collection the Collection to copy @return the String array ( null if the passed-in Collection was null )

(Collection<String> collection)

Source from the content-addressed store, hash-verified

983 * Collection was <code>null</code>)
984 */
985 public static String[] toStringArray(Collection<String> collection) {
986 if (collection == null) {
987 return null;
988 }
989 return collection.toArray(new String[collection.size()]);
990 }
991
992 /**
993 * Copy the given Enumeration into a String array.

Callers 4

mergeStringArraysMethod · 0.95
tokenizeToStringArrayMethod · 0.95

Calls 3

toArrayMethod · 0.80
listMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected