org.schwa.dr
Class ByteSlice
java.lang.Object
org.schwa.dr.ByteSlice
public class ByteSlice
- extends Object
A slice over bytes in the docrep Java API. This was chosen to not be a subclass of Slice
so that we can guarentee byte values will always fit into the wrapped data type (a long in the
case of Java).
Slices in the Java API are [inclusive, inclusive] unlike the C++ and Python APIs,
which are [inclusive, exclusive).
- Author:
- Tim Dawborn
|
Field Summary |
long |
start
The inclusive starting point of the slice. |
long |
stop
The inclusive stopping point of the slice. |
start
public long start
- The inclusive starting point of the slice.
stop
public long stop
- The inclusive stopping point of the slice.
ByteSlice
public ByteSlice()
ByteSlice
public ByteSlice(long start,
long stop)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getStart
public long getStart()
getStop
public long getStop()
setStart
public void setStart(long start)
setStop
public void setStop(long stop)
Copyright © 2014. All rights reserved.