Interface LongOrdered

All Known Subinterfaces:
Int, Rational

public interface LongOrdered
Defines the contract for Long Ordered.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(long other)
    Performs compareTo.
    default boolean
    isEqualTo(long other)
    Checks whether is Equal To.
    default boolean
    isGreaterThan(long other)
    Checks whether is Greater Than.
    default boolean
    Checks whether is Greater Than Or Equal To.
    default boolean
    isLessThan(long other)
    Checks whether is Less Than.
    default boolean
    isLessThanOrEqualTo(long other)
    Checks whether is Less Than Or Equal To.
  • Method Details

    • compareTo

      int compareTo(long other)
      Performs compareTo.
      Parameters:
      other - the other value
      Returns:
      the result of compareTo
    • isLessThan

      default boolean isLessThan(long other)
      Checks whether is Less Than.
      Parameters:
      other - the other value
      Returns:
      the result of isLessThan
    • isLessThanOrEqualTo

      default boolean isLessThanOrEqualTo(long other)
      Checks whether is Less Than Or Equal To.
      Parameters:
      other - the other value
      Returns:
      the result of isLessThanOrEqualTo
    • isGreaterThan

      default boolean isGreaterThan(long other)
      Checks whether is Greater Than.
      Parameters:
      other - the other value
      Returns:
      the result of isGreaterThan
    • isGreaterThanOrEqualTo

      default boolean isGreaterThanOrEqualTo(long other)
      Checks whether is Greater Than Or Equal To.
      Parameters:
      other - the other value
      Returns:
      the result of isGreaterThanOrEqualTo
    • isEqualTo

      default boolean isEqualTo(long other)
      Checks whether is Equal To.
      Parameters:
      other - the other value
      Returns:
      the result of isEqualTo