Package it.unimi.dsi.fastutil.chars
Interface CharCharSortedPair
- All Superinterfaces:
CharCharPair,it.unimi.dsi.fastutil.Pair<java.lang.Character,java.lang.Character>,java.io.Serializable,it.unimi.dsi.fastutil.SortedPair<java.lang.Character>
- All Known Implementing Classes:
CharCharImmutableSortedPair
public interface CharCharSortedPair extends CharCharPair, it.unimi.dsi.fastutil.SortedPair<java.lang.Character>, java.io.Serializable
A type-specific immutable
SortedPair.-
Method Summary
Modifier and Type Method Description default booleancontains(char 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 CharCharSortedPairof(char left, char right)Returns a new type-specific immutableSortedPairwith given left and right value.
-
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(char 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.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.SortedPair<java.lang.Character>
-