Package ca.spatial.tracks
Class KeyList<E>
java.lang.Object
ca.spatial.tracks.KeyList<E>
A class to handle multiple-key order preserving lookup tables.
Use KeySet for a faster but non-order preserving map.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
Filter the list and return an order sublist that matches the input keysint
String[]
getKeys(int i)
getMatches(String[] keys, Range range, int type)
getRange(int i)
getValue(int i)
Return the value associated with the first matched keyboolean
keyCompare(String[] keys, String[] ikeys)
boolean
keyCompareAll(String[] keys, String[] ikeys)
static boolean
keyCompareExact(String[] keys, String[] ikeys)
static boolean
keyCompareValues(String[] keys, String[] ikeys)
void
list()
boolean
Test if a record matches a keyvoid
removeElementAt(int i)
static String[]
searchIndex(String[] keys)
void
void
int
size()
void
sort()
static String
static String
-
Field Details
-
MIN_AGE
public static final int MIN_AGE- See Also:
- Constant Field Values
-
MAX_AGE
public static final int MAX_AGE- See Also:
- Constant Field Values
-
-
Constructor Details
-
KeyList
-
-
Method Details
-
add
-
size
public int size() -
sort
public void sort() -
clear
public void clear() -
searchIndex
-
getValue
Return the value associated with the first matched key -
getIndex
-
matchKey
Test if a record matches a key -
keyCompare
-
keyCompareExact
-
keyCompareValues
-
keyCompareAll
-
removeElementAt
public void removeElementAt(int i) -
getValue
-
setValue
-
getRange
-
setKeys
-
getKeys
-
getMatches
-
toString
-
toString
-
replace
-
list
public void list() -
filter
Filter the list and return an order sublist that matches the input keys
-