Package it.unimi.dsi.fastutil.floats
Interface FloatFloatSortedPair
- All Superinterfaces:
FloatFloatPair,it.unimi.dsi.fastutil.Pair<Float,,Float> Serializable,it.unimi.dsi.fastutil.SortedPair<Float>
- All Known Implementing Classes:
FloatFloatImmutableSortedPair
public interface FloatFloatSortedPair
extends FloatFloatPair, it.unimi.dsi.fastutil.SortedPair<Float>, Serializable
A type-specific immutable
SortedPair.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontains(float e) Returns true if one of the two elements of this sorted pair is equal to a given element.default booleanDeprecated.Please use the corresponding type-specific method instead.static FloatFloatSortedPairof(float left, float right) Returns a new type-specific immutableSortedPairwith given left and right value.Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatFloatPair
first, first, first, firstFloat, key, key, key, keyFloat, left, left, left, leftFloat, right, right, right, rightFloat, second, second, second, secondFloat, value, value, value, valueFloat
-
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.
-
contains
default boolean contains(float e) Returns true if one of the two elements of this sorted pair is equal to a given element.- Parameters:
e- an element.- Returns:
- true if one of the two elements of this sorted pair is equal to
e. - See Also:
-
contains
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.SortedPair<Float>
-