Package org.apache.calcite.util
Class IntList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.Integer>
-
- org.apache.calcite.util.IntList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.lang.Integer>
,java.util.Collection<java.lang.Integer>
,java.util.List<java.lang.Integer>
,java.util.RandomAccess
@Deprecated public class IntList extends java.util.ArrayList<java.lang.Integer>
Deprecated.Extension toArrayList
to help build an array ofint
values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntList()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutableIntList
asImmutable()
Deprecated.static java.util.List<java.lang.Integer>
asList(int[] args)
Deprecated.static int[]
toArray(java.util.List<java.lang.Integer> integers)
Deprecated.UseInts.toArray(java.util.Collection)
int[]
toIntArray()
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
-
-
-
-
Method Detail
-
toIntArray
public int[] toIntArray()
Deprecated.
-
toArray
@Deprecated public static int[] toArray(java.util.List<java.lang.Integer> integers)
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 public static java.util.List<java.lang.Integer> asList(int[] args)
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
public ImmutableIntList asImmutable()
Deprecated.
-
-