Package org.apache.calcite.util
Class IntList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Integer>,Collection<Integer>,List<Integer>,RandomAccess
Deprecated.
Extension to
ArrayList to help build an array of int
values.- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.asList(int[] args) Deprecated.static int[]Deprecated.int[]Deprecated.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
IntList
public IntList()Deprecated.
-
-
Method Details
-
toIntArray
public int[] toIntArray()Deprecated. -
toArray
Deprecated.UseInts.toArray(java.util.Collection)Converts a list ofIntegerobjects to an array of primitiveints.- Parameters:
integers- List of Integer objects- Returns:
- Array of primitive
ints
-
asList
Deprecated.Returns a list backed by an array of primitiveintvalues.The behavior is analogous to
Arrays.asList(Object[]). Changes to the list are reflected in the array. The list cannot be extended.- Parameters:
args- Array of primitiveintvalues- Returns:
- List backed by array
-
asImmutable
Deprecated.
-
Ints.toArray(java.util.Collection)