Package it.unimi.dsi.fastutil.objects
Class ObjectReferenceMutablePair<K,V>
java.lang.Object
it.unimi.dsi.fastutil.objects.ObjectReferenceMutablePair<K,V>
- All Implemented Interfaces:
ObjectReferencePair<K,,V> it.unimi.dsi.fastutil.Pair<K,,V> Serializable
public class ObjectReferenceMutablePair<K,V>
extends Object
implements ObjectReferencePair<K,V>, Serializable
A type-specific mutable
Pair; provides some additional methods that use polymorphism to avoid (un)boxing.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectReferenceMutablePair(K left, V right) Creates a new type-specific mutablePairwith given left and right value. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Pair
first, first, key, key, second, second, value, value
-
Field Details
-
left
-
right
-
-
Constructor Details
-
ObjectReferenceMutablePair
Creates a new type-specific mutablePairwith given left and right value.- Parameters:
left- the left value.right- the right value.
-
-
Method Details
-
of
Returns a new type-specific mutablePairwith given left and right value.- Parameters:
left- the left value.right- the right value.
-
left
-
left
-
right
-
right
-
equals
-
hashCode
public int hashCode() -
toString
Returns a string representation of this pair in the form <l,r>.
-