@Deprecated public abstract class IdentityIndexer<K,V> extends Indexer<K,V> implements IndexerFunction.IdentityKey<K,V>
IndexerFunction
that distinguishes and identifies elements using identity comparison of object keys.
It uses System.identityHashCode(Object)
method instead of
Object.hashCode()
method to compute hashcode and reference comparison
instead of Object.equals(Object)
method to determine identity.
The IdentityIndexer 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>
DEFAULT, DEFAULT_IDENTITY_KEY
Modifier | Constructor and Description |
---|---|
protected |
IdentityIndexer()
Deprecated.
Sole constructor; for invocation by subclass constructors, typically implicit.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hashCodeByKey, matchesByKey
getNumberKey, getObjectKey, hashCodeByKey, hashCodeByValue, matchesByKey, matchesByValue
Copyright © 2002–2025 Devexperts LLC. All rights reserved.