Top Fields Constructors Methods
org.eclipse.collections.impl.map.strategy.immutable

public final Class ImmutableEntryWithHashingStrategy<K, V>

extends AbstractImmutableEntry<K, V>
Class Inheritance
Imports
java.util.Map.Entry, .Objects, org.eclipse.collections.api.block.HashingStrategy, org.eclipse.collections.impl.tuple.AbstractImmutableEntry

Field Summary

Modifier and TypeField and Description
private final HashingStrategy<? super K>
private static final long
Inherited from org.eclipse.collections.impl.tuple.AbstractImmutableEntry:
keyvalue

Constructor Summary

AccessConstructor and Description
public
ImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object object)

Overrides java.lang.Object.equals.

Implements java.util.Map.Entry.equals.

Indicates whether an object equals this entry, following the behavior specified in java.util.Map.Entry#equals(Object).

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.Map.Entry.hashCode.

Return this entry's hash code, following the behavior specified in java.util.Map.Entry#hashCode().

public static <T1, T2> ImmutableEntryWithHashingStrategy<T1, T2>
of(T1 key, T2 value, HashingStrategy<? super T1> hashingStrategy)

Inherited from org.eclipse.collections.impl.tuple.AbstractImmutableEntry:
getKeygetKeyFunctiongetPairFunctiongetValuegetValueFunctionsetValuetoString

Field Detail

hashingStrategyback to summary
private final HashingStrategy<? super K> hashingStrategy
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.tuple.AbstractImmutableEntry.serialVersionUID.

Constructor Detail

ImmutableEntryWithHashingStrategyback to summary
public ImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy)

Method Detail

equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

Implements java.util.Map.Entry.equals.

Indicates whether an object equals this entry, following the behavior specified in java.util.Map.Entry#equals(Object).

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.Map.Entry.hashCode.

Return this entry's hash code, following the behavior specified in java.util.Map.Entry#hashCode().

Annotations
@Override
ofback to summary
public static <T1, T2> ImmutableEntryWithHashingStrategy<T1, T2> of(T1 key, T2 value, HashingStrategy<? super T1> hashingStrategy)