Package org.apache.wayang.core.util
Class WayangArrays
java.lang.Object
org.apache.wayang.core.util.WayangArrays
Utility for handling arrays.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
asList
(int... values) Convertsint
varargs into aList
.asList
(long... values) Convertslong
varargs into aList
.static int[]
range
(int to) Enumerates in ascending order all integers0 <= i < to
.static int[]
range
(int from, int to) Enumerates in ascending order all integersfrom <= i < to
.static int[]
static long[]
toArray
(Collection<Long> values) Convertes thevalues
into along
array.
-
Method Details
-
range
public static int[] range(int from, int to) Enumerates in ascending order all integersfrom <= i < to
. -
range
public static int[] range(int to) Enumerates in ascending order all integers0 <= i < to
. -
anyMatch
-
asList
Convertsint
varargs into aList
. -
asList
Convertslong
varargs into aList
. -
toArray
Convertes thevalues
into along
array. This prohibitsnull
values. -
toArray
-