Class 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 to ArrayList to help build an array of int values.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • 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.
      Use Ints.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
      • 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 Detail

      • IntList

        public IntList()
        Deprecated.
    • Method Detail

      • toIntArray

        public int[] toIntArray()
        Deprecated.
      • toArray

        @Deprecated
        public static int[] toArray​(java.util.List<java.lang.Integer> integers)
        Deprecated.
        Use Ints.toArray(java.util.Collection)
        Converts a list of Integer objects to an array of primitive ints.
        Parameters:
        integers - List of Integer objects
        Returns:
        Array of primitive ints
      • asList

        @Deprecated
        public static java.util.List<java.lang.Integer> asList​(int[] args)
        Deprecated.
        Returns a list backed by an array of primitive int 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 primitive int values
        Returns:
        List backed by array