public class GenericSplit extends java.lang.Object implements Split, SplitLocation
GenericSplit is simple implementation of
Split and SplitLocation storing needed
information as it is.| Constructor and Description |
|---|
GenericSplit()
Instantiates a new generic split.
|
GenericSplit(long start,
long length,
java.lang.String[] locations)
Instantiates a new generic split.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getEnd()
Gets the split end position.
|
long |
getLength()
Gets the split length.
|
java.lang.String[] |
getLocations()
Gets the locations of a split.
|
long |
getStart()
Gets the split start position.
|
int |
hashCode() |
void |
setLength(long length) |
void |
setStart(long start) |
public GenericSplit()
public GenericSplit(long start,
long length,
java.lang.String[] locations)
start - the split startlength - the split lengthlocations - the split locationspublic long getStart()
Splitpublic long getLength()
Splitpublic long getEnd()
Splitpublic void setStart(long start)
public void setLength(long length)
public java.lang.String[] getLocations()
SplitLocationgetLocations in interface SplitLocationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object