Class IntList

java.lang.Object
com.pnfsoftware.jeb.util.collect.IntList

@Ser public class IntList extends Object
A memory-efficient list of int primitives. Additions, retrieval, updates are supported. Deletes and insertions are not supported.

This class is not thread-safe.

Note: Object.hashCode() and Object.equals(Object) are not overridden.

  • Constructor Details

    • IntList

      public IntList()
      Create a list with an initial capacity of 16 and bucket capacity of 65,536.
    • IntList

      public IntList(int initialCapacity, int bucketCapacity)
  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clear

      public void clear()
    • get

      public int get(int index)
    • add

      public void add(int val)
    • set

      public void set(int index, int val)
    • toString

      public String toString()
      Overrides:
      toString in class Object