Module org.hsqldb

Class OrderedLongHashSet

java.lang.Object
org.hsqldb.map.BaseHashMap
org.hsqldb.lib.OrderedLongHashSet

public class OrderedLongHashSet extends org.hsqldb.map.BaseHashMap
A list which is also a set of long primitives which maintains the insertion order of the elements and allows access by index. Iterators return the keys or values in the index order.

Since:
1.9.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)
  • Constructor Details

  • Method Details

    • contains

      public boolean contains(long key)
    • add

      public boolean add(long key)
    • insert

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

      public boolean remove(long key)
    • removeEntry

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

      public long get(int index)
    • getIndex

      public int getIndex(long value)
    • getStartMatchCount

      public int getStartMatchCount(long[] array)
    • getOrderedStartMatchCount

      public int getOrderedStartMatchCount(long[] array)
    • addAll

      public boolean addAll(OrderedLongHashSet col)
    • toArray

      public long[] toArray()
    • iterator

      public PrimitiveIterator<Long> iterator()