IndexerFunction
instead.@Deprecated public abstract class Indexer<K,V> extends Object implements IndexerFunction<K,V>
IndexedSet
and IndexedMap
.
The Indexer is Serializable
, so that all concrete subclasses
shall be serializable in order to support serialization of indexed set and map..
IndexerFunction.DefaultIdentityKey, IndexerFunction.DefaultIndexerFunction, IndexerFunction.IdentityKey<K,V>, IndexerFunction.IntKey<V>, IndexerFunction.LongKey<V>
Modifier and Type | Field and Description |
---|---|
static Indexer |
DEFAULT
Deprecated.
Default strategy that treats values as their own keys (key == value) and delegates to
Object.hashCode() and Object.equals(Object)
methods as appropriate. |
DEFAULT_IDENTITY_KEY
Constructor and Description |
---|
Indexer()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNumberKey, getObjectKey, hashCodeByKey, hashCodeByKey, hashCodeByValue, matchesByKey, matchesByKey, matchesByValue
public static final Indexer DEFAULT
Object.hashCode()
and Object.equals(Object)
methods as appropriate. This strategy does not support primitive keys.
This strategy basically turns IndexedSet
into plain hash set of objects and IndexedMap
into a self-reference mapping.
Copyright © 2002–2025 Devexperts LLC. All rights reserved.