public class ByteRange extends Object
Modifier and Type | Field | 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 | Description |
---|---|
ByteRange(long from,
long to) |
|
ByteRange(ByteRange src) |
copying constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(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.
|
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 limitIllegalArgumentException
- if to < frompublic ByteRange(ByteRange src)
public boolean equals(Object other)
public int merge(ByteRange other)
Copyright © 2018. All rights reserved.