Constructor and Description |
---|
Range(long start,
long end) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Range other) |
boolean |
containsInclusive(long point) |
boolean |
encloses(Range other) |
boolean |
equals(java.lang.Object obj) |
static Range |
forValueAndRangeSize(long value,
long rangeSize) |
static Range |
fromFileWithUnderscoreDelmimitedName(java.io.File file) |
static Range |
fromUnderscoreDelmimitedString(java.lang.String string) |
long |
getEnd() |
long |
getStart() |
int |
hashCode() |
long |
length() |
boolean |
overlaps(Range otherRange) |
boolean |
overlapsAny(java.util.Collection<Range> otherRanges) |
java.lang.String |
toString() |
java.lang.String |
toUnderscoreDelimitedString() |
public long getStart()
public long getEnd()
public long length()
public boolean containsInclusive(long point)
public boolean encloses(Range other)
public boolean overlaps(Range otherRange)
public boolean overlapsAny(java.util.Collection<Range> otherRanges)
public java.lang.String toUnderscoreDelimitedString()
public static Range fromFileWithUnderscoreDelmimitedName(java.io.File file)
public static Range fromUnderscoreDelmimitedString(java.lang.String string)
public static Range forValueAndRangeSize(long value, long rangeSize)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object