Package | Description |
---|---|
com.devexperts.util |
Provides general utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
SynchronizedIndexedSet<K,V>
A synchronized thread-safe version of
IndexedSet class. |
Modifier and Type | Method and Description |
---|---|
IndexedSet<K,V> |
IndexedSet.clone()
Returns a shallow copy of this set - the values themselves are not cloned.
|
static <V> IndexedSet<V,V> |
IndexedSet.create()
Creates new empty set with default indexer
IndexerFunction.DEFAULT . |
static <V> IndexedSet<Integer,V> |
IndexedSet.create(IndexerFunction.IntKey<? super V> indexer)
Deprecated.
|
static <V> IndexedSet<Integer,V> |
IndexedSet.create(IndexerFunction.IntKey<? super V> indexer,
Collection<? extends V> c)
Deprecated.
|
static <V> IndexedSet<Integer,V> |
IndexedSet.create(IndexerFunction.IntKey<? super V> indexer,
int initialCapacity)
Deprecated.
|
static <V> IndexedSet<Long,V> |
IndexedSet.create(IndexerFunction.LongKey<? super V> indexer)
Deprecated.
|
static <V> IndexedSet<Long,V> |
IndexedSet.create(IndexerFunction.LongKey<? super V> indexer,
Collection<? extends V> c)
Deprecated.
|
static <V> IndexedSet<Long,V> |
IndexedSet.create(IndexerFunction.LongKey<? super V> indexer,
int initialCapacity)
Deprecated.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.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,
Collection<? extends V> c)
Deprecated.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.create(IndexerFunction<K,? super V> indexer,
int initialCapacity)
Deprecated.
|
static <V> IndexedSet<V,V> |
IndexedSet.createIdentity()
Creates new empty set with default identity indexer.
|
static <K,V> IndexedSet<K,V> |
IndexedSet.createIdentity(IndexerFunction.IdentityKey<K,? super V> indexer)
Creates new empty set with specified identity indexer.
|
static <V> IndexedSet<Integer,V> |
IndexedSet.createInt(IndexerFunction.IntKey<? super V> indexer)
Creates new empty set with specified int indexer.
|
static <V> IndexedSet<Long,V> |
IndexedSet.createLong(IndexerFunction.LongKey<? super V> indexer)
Creates new empty set with specified long indexer.
|
IndexedSet<K,V> |
IndexedMap.getIndexedSet()
Returns indexed set used by this map for actual data storage.
|
static <V> IndexedSet<V,V> |
IndexedSet.of(V... objs)
Creates a new set with default indexer containing specified elements.
|
IndexedSet<K,V> |
IndexedSet.withCapacity(int capacity)
Increases the capacity of this set instance, if necessary, to ensure that it
can hold at least the number of elements specified by the capacity argument.
|
IndexedSet<K,V> |
IndexedSet.withElements(Collection<? extends V> c)
Adds all of the elements in the specified collection into this set.
|
Modifier and Type | Method and Description |
---|---|
static <V> Collector<V,?,? extends IndexedSet<V,V>> |
IndexedSet.collector()
Returns a
Collector that accumulates the input elements into a new IndexedSet with default indexer. |
static <V> Collector<V,?,? extends IndexedSet<Integer,V>> |
IndexedSet.collector(IndexerFunction.IntKey<? super V> indexer)
Deprecated.
|
static <V> Collector<V,?,? extends IndexedSet<Long,V>> |
IndexedSet.collector(IndexerFunction.LongKey<? super V> indexer)
Deprecated.
|
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 <V> Collector<V,?,? extends IndexedSet<V,V>> |
IndexedSet.collectorIdentity()
Returns a
Collector that accumulates the input elements into a new IndexedSet with default identity indexer. |
static <K,V> Collector<V,?,? extends IndexedSet<K,V>> |
IndexedSet.collectorIdentity(IndexerFunction.IdentityKey<K,? super V> indexer)
Returns a
Collector that accumulates the input elements into a new IndexedSet with specified identity indexer. |
static <V> Collector<V,?,? extends IndexedSet<Integer,V>> |
IndexedSet.collectorInt(IndexerFunction.IntKey<? super V> indexer)
Returns a
Collector that accumulates the input elements into a new IndexedSet with specified int indexer. |
static <V> Collector<V,?,? extends IndexedSet<Long,V>> |
IndexedSet.collectorLong(IndexerFunction.LongKey<? super V> indexer)
Returns a
Collector that accumulates the input elements into a new IndexedSet with specified long indexer. |
Constructor and Description |
---|
IndexedMap(IndexedSet<K,V> set,
boolean wrap)
Creates a new map which wraps specified indexed set and provides a
Map view for it. |
Copyright © 2002–2025 Devexperts LLC. All rights reserved.