Package it.unimi.dsi.fastutil.objects
Interface ReferenceReferencePair<K,V>
-
- All Superinterfaces:
Pair<K,V>
- All Known Implementing Classes:
ReferenceReferenceImmutablePair
,ReferenceReferenceMutablePair
public interface ReferenceReferencePair<K,V> extends Pair<K,V>
A type-specificPair
; provides some additional methods that use polymorphism to avoid (un)boxing.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <K,V>
ReferenceReferencePair<K,V>of(K left, V right)
Returns a new type-specific immutablePair
with given left and right value.
-
-
-
Method Detail
-
of
static <K,V> ReferenceReferencePair<K,V> of(K left, V right)
Returns a new type-specific immutablePair
with given left and right value.- Parameters:
left
- the left value.right
- the right value.
-
-