Serializable, Cloneable, Comparable<Chunk>public class Chunk extends Object implements Cloneable, Serializable, Comparable<Chunk>
| Constructor | Description |
|---|---|
Chunk(long start,
long end) |
| Modifier and Type | Method | Description |
|---|---|---|
Chunk |
clone() |
|
int |
compareTo(Chunk chunk) |
|
boolean |
equals(Object o) |
|
long |
getChunkEnd() |
|
long |
getChunkStart() |
|
int |
hashCode() |
|
boolean |
isAdjacentTo(Chunk other) |
Returns whether two chunks overlap.
|
static List<Chunk> |
optimizeChunkList(List<Chunk> chunks,
long minimumOffset) |
|
boolean |
overlaps(Chunk other) |
Returns whether two chunks overlap.
|
protected void |
setChunkEnd(long value) |
|
protected void |
setChunkStart(long value) |
|
String |
toString() |
public long getChunkStart()
protected void setChunkStart(long value)
public long getChunkEnd()
protected void setChunkEnd(long value)
public int compareTo(Chunk chunk)
compareTo in interface Comparable<Chunk>public boolean overlaps(Chunk other)
other - Chunk to which this should be compared.public boolean isAdjacentTo(Chunk other)
other - Chunk to which this should be compared.