Class IntRange

java.lang.Object
net.buildtheearth.terraminusminus.util.IntRange

public class IntRange extends Object
A simple closed range between two integers.
  • Field Details

    • min

      protected final int min
    • max

      protected final int max
  • Constructor Details

    • IntRange

      public IntRange(int val)
    • IntRange

      public IntRange(int min, int max)
  • Method Details

    • min

      public int min()
    • max

      public int max()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object