Package org.opencastproject.util.data
Class Arrays
java.lang.Object
org.opencastproject.util.data.Arrays
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> A[]Create a new array by appendingatoas:[as0, as1, .. asn, a].static <A> A[]array(A... as) Create an array from the vararg parameter list.static <A> A[]Create a new array by prependingatoas:[a, as0, as1, .. asn]static <A> StringMake a string from a collection separating each element bysep.static <A> A[]Turn a value into a single element array.
-
Method Details
-
cons
Create a new array by prependingatoas:[a, as0, as1, .. asn] -
append
Create a new array by appendingatoas:[as0, as1, .. asn, a]. -
array
public static <A> A[] array(A... as) Create an array from the vararg parameter list. -
singleton
Turn a value into a single element array. -
mkString
Make a string from a collection separating each element bysep.
-