Class OrderedLongHashSet
java.lang.Object
org.hsqldb.lib.OrderedLongHashSet
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)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(long key) booleanaddAll(OrderedLongHashSet col) voidclear()Clear the map completely.org.hsqldb.map.BaseHashMapclone()booleancontains(long key) longget(int index) intgetIndex(long value) intgetOrderedStartMatchCount(long[] array) intgetStartMatchCount(long[] array) booleaninsert(int index, long key) booleanisEmpty()iterator()booleanremove(long key) voidremoveEntry(int index) intsize()long[]toArray()
-
Field Details
-
ACCESS_MAX
public static final int ACCESS_MAX- See Also:
-
emptyObjectArray
-
-
Constructor Details
-
OrderedLongHashSet
public OrderedLongHashSet() -
OrderedLongHashSet
- Throws:
IllegalArgumentException
-
-
Method Details
-
contains
public boolean contains(long key) -
add
public boolean add(long key) -
insert
- Throws:
IndexOutOfBoundsException
-
remove
public boolean remove(long key) -
removeEntry
- 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
-
toArray
public long[] toArray() -
iterator
-
clear
public void clear()Clear the map completely. -
size
public int size() -
isEmpty
public boolean isEmpty() -
clone
public org.hsqldb.map.BaseHashMap clone()
-