public class FVector<E> extends SimpleVector<E> implements Consumable, java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object[] |
empty |
cantWriteMarker, indexesATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE| Constructor and Description |
|---|
FVector() |
FVector(int size) |
FVector(int size,
java.lang.Object value) |
FVector(java.util.List seq) |
FVector(java.lang.Object[] data)
Reuses the argument without making a copy.
|
FVector(java.lang.Object[] values,
int offset,
int length)
Makes a copy of (part of) the argument array.
|
FVector(java.lang.Object[] data,
IntSequence indexes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearBuffer(int start,
int count) |
int |
compareTo(java.lang.Object obj) |
void |
consume(Consumer out) |
void |
consumePosRange(int iposStart,
int iposEnd,
Consumer out) |
void |
copyFrom(int index,
FVector<E> src,
int start,
int end) |
boolean |
equals(java.lang.Object obj) |
void |
fill(int start,
int end,
E new_value) |
E |
get(int index)
See java.util.List.
|
java.lang.Object[] |
getBuffer() |
E |
getBuffer(int index) |
int |
getBufferLength()
Get the allocated length of the data buffer.
|
static FVector |
make(java.lang.Object... data) |
void |
setBuffer(int index,
java.lang.Object value) |
protected void |
setBuffer(java.lang.Object buffer) |
void |
setBufferLength(int length) |
protected FVector<E> |
withIndexes(IntSequence ind)
Create a new instance with the same data and replaces indexes.
|
add, add, addPos, addSpace, delete, fill, getGapManager, getRowMajor, getSegment, getSegment, getSegmentReadOnly, getStableManager, getTag, isAfterPos, readExternal, set, setAt, shift, toDataArray, transpose, writeExternalcheckCanWrite, getIndexesForce, indexesSelect, indexesSubList, nextPos, select, size, subListaddAll, addAll, boundedHash, clear, compare, compare, compare, consume, consumeNext, contains, containsAll, copyPos, createPos, createRelativePos, elements, endPos, equals, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setPosNext, setPosPrevious, stableCompare, startPos, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, setaddAll, addAll, clear, contains, containsAll, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, toArray, toArrayboundedHashpublic FVector()
public FVector(int size,
java.lang.Object value)
public FVector(int size)
public FVector(java.lang.Object[] data)
public FVector(java.lang.Object[] data,
IntSequence indexes)
public FVector(java.lang.Object[] values,
int offset,
int length)
public FVector(java.util.List seq)
public static FVector make(java.lang.Object... data)
public int getBufferLength()
getBufferLength in class IndirectIndexable<E>public void setBufferLength(int length)
setBufferLength in class SimpleVector<E>public java.lang.Object[] getBuffer()
getBuffer in class SimpleVector<E>protected void setBuffer(java.lang.Object buffer)
setBuffer in class SimpleVector<E>public final E get(int index)
AbstractSequencepublic final E getBuffer(int index)
getBuffer in class SimpleVector<E>public final void setBuffer(int index,
java.lang.Object value)
setBuffer in class SimpleVector<E>protected void clearBuffer(int start,
int count)
clearBuffer in class SimpleVector<E>protected FVector<E> withIndexes(IntSequence ind)
IndirectIndexablewithIndexes in class IndirectIndexable<E>public final void fill(int start,
int end,
E new_value)
fill in class AbstractSequence<E>public void consumePosRange(int iposStart,
int iposEnd,
Consumer out)
consumePosRange in class AbstractSequence<E>public void consume(Consumer out)
consume in interface Consumableconsume in class AbstractSequence<E>public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<E>equals in interface java.util.List<E>equals in class AbstractSequence<E>public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparable