Interface IntIntSortedPair

All Superinterfaces:
IntIntPair, Pair<Integer,​Integer>, Serializable, SortedPair<Integer>
All Known Implementing Classes:
IntIntImmutableSortedPair

public interface IntIntSortedPair
extends IntIntPair, SortedPair<Integer>, Serializable
A type-specific immutable SortedPair.
  • Method Details

    • of

      static IntIntSortedPair of​(int left, int 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.
      Implementation Notes:
      This factory method delegates to the factory method of the corresponding immutable implementation.