Package | Description |
---|---|
com.devexperts.util |
Provides general utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
IdentityIndexer<K,V>
A subclass of
Indexer that distinguishes and identifies elements using identity comparison of object keys. |
class |
NumberKeyIndexer<V>
A subclass of
Indexer that distinguishes and identifies elements using number keys. |
Modifier and Type | Field and Description |
---|---|
static Indexer |
Indexer.DEFAULT
Default strategy that treats values as their own keys (key == value) and delegates to
Object.hashCode() and Object.equals(Object)
methods as appropriate. |
Modifier and Type | Method and Description |
---|---|
Indexer<K,? super V> |
IndexedSet.getIndexer()
Returns indexer used to distinguish and identify elements in this set.
|
Indexer<K,? super V> |
IndexedMap.getIndexer()
Returns indexer used to distinguish and identify elements in this map.
|
Constructor and Description |
---|
IndexedMap(Indexer<K,? super V> indexer)
Creates new empty map with specified indexer and default initial capacity.
|
IndexedMap(Indexer<K,? super V> indexer,
Collection<? extends V> c)
Creates a new map with specified indexer containing the elements in the specified collection.
|
IndexedMap(Indexer<K,? super V> indexer,
int initial_capacity)
Creates new empty map with specified indexer and specified initial capacity.
|
IndexedMap(Indexer<K,? super V> indexer,
Map<? extends K,? extends V> map)
Creates a new map with specified indexer containing the elements in the specified map.
|
IndexedSet(Indexer<K,? super V> indexer)
Creates new empty set with specified indexer and default initial capacity.
|
IndexedSet(Indexer<K,? super V> indexer,
Collection<? extends V> c)
Creates a new set with specified indexer containing the elements in the specified collection.
|
IndexedSet(Indexer<K,? super V> indexer,
int initial_capacity)
Creates new empty set with specified indexer and specified initial capacity.
|
SynchronizedIndexedSet(Indexer<K,? super V> indexer)
Creates new empty set with specified indexer and default initial capacity.
|
SynchronizedIndexedSet(Indexer<K,? super V> indexer,
Collection<? extends V> c)
Creates a new set with specified indexer containing the elements in the specified collection.
|
SynchronizedIndexedSet(Indexer<K,? super V> indexer,
int initial_capacity)
Creates new empty set with specified indexer and specified initial capacity.
|
Copyright © 2015 Devexperts. All Rights Reserved.