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
-
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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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 ofInteger
objects to an array of primitiveint
s.- Parameters:
integers
- List of Integer objects- Returns:
- Array of primitive
int
s
-
asList
Deprecated.Returns a list backed by an array of primitiveint
values.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 primitiveint
values- Returns:
- List backed by array
-
asImmutable
Deprecated.
-
Ints.toArray(java.util.Collection)