Class IntList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess

@Deprecated public class IntList extends ArrayList<Integer>
Deprecated.
Extension to ArrayList to help build an array of int values.
See Also:
  • Constructor Details

    • IntList

      public IntList()
      Deprecated.
  • Method Details

    • toIntArray

      public int[] toIntArray()
      Deprecated.
    • toArray

      @Deprecated public static int[] toArray(List<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 List<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
    • asImmutable

      public ImmutableIntList asImmutable()
      Deprecated.