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()
Split
public long getLength()
Split
public long getEnd()
Split
public void setStart(long start)
public void setLength(long length)
public java.lang.String[] getLocations()
SplitLocation
getLocations
in interface SplitLocation
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object