Interface LongLookup
- All Known Implementing Classes:
DoubleIntIndex, DoubleLongIndex
public interface LongLookup
Interface for long to long lookup.
- Since:
- 2.0.0
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionintadd(long key, long value) booleanaddUnsorted(long key, long value) booleanaddUnsorted(LongLookup other) voidclear()booleanlonggetLongKey(int pos) longgetLongValue(int pos) longlonglookup(long key) longlookup(long key, long def) voidsetLongValue(int pos, long newValue) intsize()voidsort()
-
Method Details
-
add
int add(long key, long value) -
addUnsorted
boolean addUnsorted(long key, long value) -
lookup
- Throws:
NoSuchElementException
-
lookup
long lookup(long key, long def) -
getLongKey
long getLongKey(int pos) -
getLongValue
long getLongValue(int pos) -
setLongValue
void setLongValue(int pos, long newValue) -
getTotalValues
long getTotalValues() -
size
int size() -
sort
void sort() -
clear
void clear() -
duplicate
LongLookup duplicate() -
addUnsorted
-
compactLookupAsIntervals
boolean compactLookupAsIntervals()
-