Package it.unimi.dsi.fastutil.doubles
Interface DoubleDoubleSortedPair
- All Superinterfaces:
DoubleDoublePair,Pair<java.lang.Double,java.lang.Double>,java.io.Serializable,SortedPair<java.lang.Double>
- All Known Implementing Classes:
DoubleDoubleImmutableSortedPair
public interface DoubleDoubleSortedPair extends DoubleDoublePair, SortedPair<java.lang.Double>, java.io.Serializable
A type-specific immutable
SortedPair.-
Method Summary
Modifier and Type Method Description default booleancontains(double e)Returns true if one of the two elements of this sorted pair is equal to a given element.default booleancontains(java.lang.Object o)Deprecated.Please use the corresponding type-specific method instead.static DoubleDoubleSortedPairof(double left, double right)Returns a new type-specific immutableSortedPairwith given left and right value.Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleDoublePair
first, first, first, firstDouble, key, key, key, keyDouble, left, left, left, leftDouble, right, right, right, rightDouble, second, second, second, secondDouble, value, value, value, valueDouble
-
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 Specification:
- This factory method delegates to the factory method of the corresponding immutable implementation.
-
contains
default boolean contains(double 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:
SortedPair.contains(Object)
-
contains
@Deprecated default boolean contains(java.lang.Object o)Deprecated.Please use the corresponding type-specific method instead.Returns true if one of the two elements of this sorted pair is equal to a given object.- Specified by:
containsin interfaceSortedPair<java.lang.Double>- Parameters:
o- an object, ornull-- Returns:
- true if one of the two elements of this sorted pair is equal to
o.
-