public class DefaultIndex<K> extends AbstractIndex<K>
Constructor and Description |
---|
DefaultIndex(Index<K> index,
Comparator<K> comparator) |
DefaultIndex(K... keys) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(K key) |
Integer |
getAddress(K key) |
K |
getKey(int i) |
int |
getSize() |
Index<K> |
head(int count) |
Iterable<K> |
keys() |
DefaultIndex<K> |
remove(K... keys) |
Index<K> |
tail(int count) |
intersection, union
public DefaultIndex(K... keys)
public DefaultIndex(Index<K> index, Comparator<K> comparator)
Copyright © 2014 Macrofocus GmbH. All Rights Reserved.