Class IntegerList
java.lang.Object
com.pnfsoftware.jeb.util.primitives.IntegerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildFromArray(int[] a, List<Integer> l) Replace a list's content with the values from an int array.buildList(int... elts) Build a list of integers from varargs.buildListFromArray(int[] a) Build a list of integers from an int array.static booleancompareToArray(List<Integer> l, int[] a) Compare a list of integers with an int array.static Stringformat(int[] l) Format an int array.static Stringformat(int[][] l) Format a two-dimensional int array.static StringFormat a list of integers.
-
Constructor Details
-
IntegerList
public IntegerList()
-
-
Method Details
-
format
Format a two-dimensional int array.- Parameters:
l- array to format- Returns:
- a comma-separated representation of nested arrays
-
format
Format an int array.- Parameters:
l- array to format- Returns:
- a comma-separated representation of the array
-
format
Format a list of integers.- Parameters:
l- list to format- Returns:
- a comma-separated representation of the list
-
compareToArray
Compare a list of integers with an int array.- Parameters:
l- list to comparea- array to compare- Returns:
- true if both containers have the same values in the same order
-
buildListFromArray
Build a list of integers from an int array.- Parameters:
a- source array- Returns:
- a new list containing the array values
-
buildList
Build a list of integers from varargs.- Parameters:
elts- values to add- Returns:
- a new list containing the provided values
-
buildFromArray
Replace a list's content with the values from an int array.- Parameters:
a- source arrayl- destination list- Returns:
- the destination list
-