Package | Description |
---|---|
com.devexperts.util |
Provides general utility classes.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
IndexerFunction.IdentityKey<K,V>
A specialized
IndexerFunction that distinguishes and identifies elements using identity comparison of object keys. |
static interface |
IndexerFunction.IntKey<V>
An
IndexerFunction that distinguishes and identifies elements using int keys. |
static interface |
IndexerFunction.LongKey<V>
An
IndexerFunction that distinguishes and identifies elements using long keys. |
Modifier and Type | Class and Description |
---|---|
class |
IdentityIndexer<K,V>
Deprecated.
|
class |
Indexer<K,V>
Deprecated.
Use a functional interface
IndexerFunction instead. |
static class |
IndexerFunction.DefaultIdentityKey
Default identity strategy that treats values as their own keys (key == value).
|
static class |
IndexerFunction.DefaultIndexerFunction
Default strategy that treats values as their own keys (key == value).
|
class |
NumberKeyIndexer<V>
Deprecated.
Use functional interfaced
IndexerFunction.LongKey or IndexerFunction.IntKey instead. |
Modifier and Type | Field and Description |
---|---|
static IndexerFunction |
IndexerFunction.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 |
---|---|
IndexerFunction<K,? super V> |
IndexedSet.getIndexerFunction()
Returns indexer function used to distinguish and identify elements in this set.
|
IndexerFunction<K,? super V> |
IndexedMap.getIndexerFunction()
Returns indexer function used to distinguish and identify elements in this map.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Collector<V,?,? extends SynchronizedIndexedSet<K,V>> |
SynchronizedIndexedSet.collector(IndexerFunction<K,? super V> indexer)
Returns a
Collector that accumulates the input elements into a new SynchronizedIndexedSet with specified indexer. |
static <K,V> Collector<V,?,? extends IndexedSet<K,V>> |
IndexedSet.collector(IndexerFunction<K,? super V> indexer)
Returns a
Collector that accumulates the input elements into a new IndexedSet with specified indexer. |
static <K,V> Collector<V,?,? extends IndexedMap<K,V>> |
IndexedMap.collector(IndexerFunction<K,? super V> indexer)
Returns a
Collector that accumulates the input elements into a new IndexedMap with specified indexer. |
static <K,V> SynchronizedIndexedSet<K,V> |
SynchronizedIndexedSet.create(IndexerFunction<K,? super V> indexer)
Creates new empty set with specified indexer.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.create(IndexerFunction<K,? super V> indexer)
Creates new empty set with specified indexer.
|
static <K,V> IndexedMap<K,V> |
IndexedMap.create(IndexerFunction<K,? super V> indexer)
Creates new empty map with specified indexer.
|
static <K,V> SynchronizedIndexedSet<K,V> |
SynchronizedIndexedSet.create(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Deprecated.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.create(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Deprecated.
|
static <K,V> IndexedMap<K,V> |
IndexedMap.create(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Deprecated.
|
static <K,V> SynchronizedIndexedSet<K,V> |
SynchronizedIndexedSet.create(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Deprecated.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.create(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Deprecated.
|
static <K,V> IndexedMap<K,V> |
IndexedMap.create(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Deprecated.
|
static <K,V> IndexedMap<K,V> |
IndexedMap.create(IndexerFunction<K,? super V> indexer,
Map<? extends K,? extends V> map)
Deprecated.
|
Constructor and Description |
---|
IndexedMap(IndexerFunction<K,? super V> indexer)
Creates new empty map with specified indexer.
|
IndexedMap(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Creates a new map with specified indexer containing the elements in the specified collection.
|
IndexedMap(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Creates new empty map with specified indexer and specified initial capacity.
|
IndexedMap(IndexerFunction<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(IndexerFunction<K,? super V> indexer)
Creates new empty set with specified indexer.
|
IndexedSet(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Creates a new set with specified indexer containing the elements in the specified collection.
|
IndexedSet(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Creates new empty set with specified indexer and specified initial capacity.
|
SynchronizedIndexedSet(IndexerFunction<K,? super V> indexer)
Creates new empty set with specified indexer.
|
SynchronizedIndexedSet(IndexerFunction<K,? super V> indexer,
Collection<? extends V> c)
Creates a new set with specified indexer containing the elements in the specified collection.
|
SynchronizedIndexedSet(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Creates new empty set with specified indexer and specified initial capacity.
|
Copyright © 2002–2025 Devexperts LLC. All rights reserved.