Class RangeSet.Range

  • All Implemented Interfaces:
    java.lang.Comparable<RangeSet.Range>
    Enclosing class:
    RangeSet

    public static final class RangeSet.Range
    extends java.lang.Object
    implements java.lang.Comparable<RangeSet.Range>
    • Constructor Detail

      • Range

        public Range​(int first,
                     int last)
      • Range

        public Range​(int single)
    • Method Detail

      • contains

        public boolean contains​(int i)
      • contains

        public boolean contains​(RangeSet.Range other)
        Checks if this range completely can contain the other range.
        Parameters:
        other - other range to verify
        Returns:
        true if other completely contained by this, otherwise false
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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