public interface Sequence extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
add(Iterator<Long> elements)
Adds an element to the array
|
long |
get(long position)
Gets the element in a specific position
|
long |
getNumberOfElements()
Gets the total number of elements in the array
|
String |
getType()
Type identifier of this Stream.
|
void |
load(InputStream input,
ProgressListener listener)
Loads a array from an InputStream
|
void |
save(OutputStream output,
ProgressListener listener)
Saves the array to an OutputStream
|
long |
size()
Return the size of the data structure in bytes
|
void add(Iterator<Long> elements)
element - The element to be added to the arraylong get(long position)
position - The position of the element to be returnedlong getNumberOfElements()
long size()
void save(OutputStream output, ProgressListener listener) throws IOException
output - The OutputStream to be saved toIOExceptionvoid load(InputStream input, ProgressListener listener) throws IOException
input - The InputStream to load fromIOExceptionString getType()
Copyright © 2018 DataWeb Research. All rights reserved.