|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- an actual typepublic interface BatchedData<D extends BatchedData<D>>
A batched data interface. This interface contains operations that are common
to BinaryData
and TextData
classes. It is used to provide a
common IO code.
Method Summary | |
---|---|
D |
concat(D data)
Concatenage two items |
D |
drop(int n)
Get new data with first n elements dropped |
D |
head(int n)
Get data with first n elements |
boolean |
isEmpty()
|
int |
length()
|
Promise<D> |
promise()
Return a promise that wraps this value |
D |
subrange(int start,
int end)
Get subrange of data |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
D concat(D data)
data
- a second element
D drop(int n)
n
- cut point
D head(int n)
n
- amount to cut from beginning of the data
D subrange(int start, int end)
start
- a start posiionend
- a limit
boolean isEmpty()
int length()
Promise<D> promise()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |