public class ByteRange
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ADJACENT |
long |
from
lower range limit
|
static int |
THIS_ABOVE |
static int |
THIS_BELOW |
static int |
THIS_SUBSET |
static int |
THIS_SUPERSET |
long |
to
upper range limit
|
Constructor and Description |
---|
ByteRange(ByteRange src)
copying constructor
|
ByteRange(long from,
long to) |
Modifier and Type | Method and Description |
---|---|
private void |
copy(ByteRange other) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
int |
merge(ByteRange other)
If this range can be consolidated with the other one,
modify this range so that it represents the result of merging
this and the other range.
|
java.lang.String |
toString() |
public long from
public long to
public static final int THIS_BELOW
public static final int ADJACENT
public static final int THIS_SUPERSET
public static final int THIS_SUBSET
public static final int THIS_ABOVE
public ByteRange(long from, long to)
from
- lower range limitto
- upper range limitjava.lang.IllegalArgumentException
- if to < frompublic ByteRange(ByteRange src)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
private void copy(ByteRange other)
public int merge(ByteRange other)
public java.lang.String toString()
toString
in class java.lang.Object