Package it.unimi.dsi.fastutil.objects
Interface ObjectReferencePair<K,V>
- All Superinterfaces:
Pair<K,
V>
- All Known Implementing Classes:
ObjectReferenceImmutablePair
,ObjectReferenceMutablePair
A type-specific
Pair
; provides some additional methods that
use polymorphism to avoid (un)boxing.-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> ObjectReferencePair <K, V> of
(K left, V right) Returns a new type-specific immutablePair
with given left and right value.
-
Method Details
-
of
Returns a new type-specific immutablePair
with given left and right value.- Parameters:
left
- the left value.right
- the right value.
-