Class Bounds<T extends java.lang.Comparable<? super T>>

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

public class Bounds<T extends java.lang.Comparable<? super T>>
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Bounds​(T bound1, T bound2)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String asString()  
    java.lang.String asString​(java.util.function.Function<T,​java.lang.String> formatter)  
    boolean equals​(java.lang.Object o)  
    T getLower()  
    T getUpper()  
    int hashCode()  
    boolean isDot()
    Returns true if lower bound is equals to upper bound.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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 java.lang.String asString()
    • asString

      public java.lang.String asString​(java.util.function.Function<T,​java.lang.String> formatter)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object