Module org.hsqldb

Class 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)
    • Constructor Detail

      • OrderedIntHashSet

        public OrderedIntHashSet()
      • OrderedIntHashSet

        public OrderedIntHashSet​(int initialCapacity)
                          throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • OrderedIntHashSet

        public OrderedIntHashSet​(int[] elements)
      • OrderedIntHashSet

        public OrderedIntHashSet​(int[] elementsA,
                                 int[] elementsB)
    • Method Detail

      • insert

        public boolean insert​(int index,
                              int key)
                       throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • remove

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

        public void removeEntry​(int index)
                         throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • get

        public int get​(int index)
      • getIndex

        public int getIndex​(int value)
      • getOrderedStartMatchCount

        public int getOrderedStartMatchCount​(int[] array)