Constructor and Description |
---|
Range(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Range other) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isInRange(int val) |
public static final Range EMPTY
public final int start
public final int end
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Range other)
compareTo
in interface java.lang.Comparable<Range>
public boolean isInRange(int val)