Class Range<T>

java.lang.Object
org.instancio.internal.util.Range<T>

public final class Range<T> extends Object
  • Method Details

    • of

      public static <T> Range<T> of(T min, T max)
      Range with the specified lower and upper bound.
      Parameters:
      min - lower bound
      max - upper bound
      Returns:
      range with given bounds
    • min

      public T min()
    • max

      public T max()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object