MCPcopy Create free account
hub / github.com/apache/commons-lang / toArray

Method toArray

src/main/java/org/apache/commons/lang3/Streams.java:566–568  ·  view source on GitHub ↗

Returns a Collector that accumulates the input elements into a new array. @param elementType Type of an element in the array. @param The type of the input elements. @return a Collector which collects all the input elements into an array, in encounter order.

(final Class<O> elementType)

Source from the content-addressed store, hash-verified

564 * array, in encounter order.
565 */
566 public static <O> Collector<O, ?, O[]> toArray(final Class<O> elementType) {
567 return new ArrayCollector<>(elementType);
568 }
569
570 /**
571 * Constructs a new instance.

Callers 11

testToArrayMethod · 0.95
testToArrayMethod · 0.95
finisherMethod · 0.45
capitalizeMethod · 0.45
splitByCharacterTypeMethod · 0.45
splitWorkerMethod · 0.45
substringsBetweenMethod · 0.45
toCodePointsMethod · 0.45
uncapitalizeMethod · 0.45

Calls

no outgoing calls

Tested by 3

testToArrayMethod · 0.76
testToArrayMethod · 0.76