Package it.unimi.dsi.fastutil.shorts
Interface ShortShortSortedPair
- All Superinterfaces:
Pair<Short,Short>,Serializable,ShortShortPair,SortedPair<Short>
- All Known Implementing Classes:
ShortShortImmutableSortedPair
public interface ShortShortSortedPair extends ShortShortPair, SortedPair<Short>, Serializable
A type-specific immutable
SortedPair.-
Method Summary
Static Methods Modifier and Type Method Description static ShortShortSortedPairof(short left, short right)Returns a new type-specific immutableSortedPairwith given left and right value.Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortShortPair
first, first, first, firstShort, key, key, key, keyShort, left, left, left, leftShort, right, right, right, rightShort, second, second, second, secondShort, value, value, value, valueShort
-
Method Details
-
of
Returns a new type-specific immutableSortedPairwith given left and right value.Note that if
leftandrightare in the wrong order, they will be exchanged.- Parameters:
left- the left value.right- the right value.- Implementation Notes:
- This factory method delegates to the factory method of the corresponding immutable implementation.
-