Class OrderedIntHashSet

java.lang.Object
org.hsqldb.lib.IntHashSet
org.hsqldb.lib.OrderedIntHashSet

public class OrderedIntHashSet extends IntHashSet
A list which is also a set of int primitives which maintains the insertion order of the elements and allows access by index. Iterators return the keys in the index order.
Since:
1.9.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)
  • Field Details

    • ACCESS_MAX

      public static final int ACCESS_MAX
      See Also:
    • emptyObjectArray

      public static final Object[] emptyObjectArray
  • Constructor Details

    • OrderedIntHashSet

      public OrderedIntHashSet()
    • OrderedIntHashSet

      public OrderedIntHashSet(int initialCapacity) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • OrderedIntHashSet

      public OrderedIntHashSet(int[] elements)
    • OrderedIntHashSet

      public OrderedIntHashSet(int[] elementsA, int[] elementsB)
    • OrderedIntHashSet

      public OrderedIntHashSet(int[] elementsA, int[] elementsB, int[] elementsC)
  • Method Details

    • insert

      public boolean insert(int index, int key) throws IndexOutOfBoundsException
      Throws:
      IndexOutOfBoundsException
    • remove

      public boolean remove(int key)
      Overrides:
      remove in class IntHashSet
    • removeEntry

      public void removeEntry(int index) throws IndexOutOfBoundsException
      Throws:
      IndexOutOfBoundsException
    • get

      public int get(int index)
    • getIndex

      public int getIndex(int value)
    • getOrderedStartMatchCount

      public int getOrderedStartMatchCount(int[] array)
    • addAll

      public boolean addAll(OrderedIntHashSet set)
    • clear

      public void clear()
      Clear the map completely.
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clone

      public org.hsqldb.map.BaseHashMap clone()