public class SequenceInt32 extends Object implements DynamicSequence
| Constructor and Description |
|---|
SequenceInt32()
Basic constructor
|
SequenceInt32(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Iterator<Long> iterator)
Adds an element to the array
|
void |
addIntegers(List<Integer> elements) |
void |
aggressiveTrimToSize()
Trim the internal data structure to fit the actual number of elements.
|
void |
append(long value)
Append a new value after the last position, increasing the number of elements by one.
|
void |
close() |
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
|
void |
set(long position,
long value)
Set a new value at the specified position.
|
long |
size()
Return the size of the data structure in bytes
|
String |
toString() |
void |
trimToSize()
Trim the internal data structure to fit the actual number of elements.
|
public SequenceInt32()
public SequenceInt32(int capacity)
public void trimToSize()
DynamicSequencetrimToSize in interface DynamicSequencepublic void aggressiveTrimToSize()
DynamicSequenceaggressiveTrimToSize in interface DynamicSequencepublic long get(long position)
Sequencepublic void set(long position,
long value)
DynamicSequenceset in interface DynamicSequencepublic void append(long value)
DynamicSequenceappend in interface DynamicSequencepublic long getNumberOfElements()
SequencegetNumberOfElements in interface Sequencepublic void save(OutputStream output, ProgressListener listener) throws IOException
Sequencesave in interface Sequenceoutput - The OutputStream to be saved toIOExceptionpublic void load(InputStream input, ProgressListener listener) throws IOException
Sequenceload in interface Sequenceinput - The InputStream to load fromIOExceptionpublic void add(Iterator<Long> iterator)
Sequencepublic long size()
Sequencepublic String getType()
Sequencepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 DataWeb Research. All rights reserved.