Class Bounds<T extends Comparable<? super T>>

java.lang.Object
org.xblackcat.sjpu.cli.Bounds<T>

public class Bounds<T extends Comparable<? super T>> extends Object
  • Constructor Details

    • Bounds

      public Bounds(T bound1, T bound2)
  • Method Details

    • getLower

      public T getLower()
    • getUpper

      public T getUpper()
    • isDot

      public boolean isDot()
      Returns true if lower bound is equals to upper bound.
      Returns:
      true if bounds are the same
    • asString

      public String asString()
    • asString

      public String asString(Function<T,String> formatter)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object