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 Details

    • of

      static FloatFloatSortedPair of(float left, float right)
      Returns a new type-specific immutable SortedPair with given left and right value.

      Note that if left and right are 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:
      • SortedPair.contains(Object)
    • contains

      @Deprecated default boolean contains(Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      contains in interface it.unimi.dsi.fastutil.SortedPair<Float>