gnu.lists
Class U8Vector
java.lang.Object
gnu.lists.AbstractSequence
gnu.lists.SimpleVector
gnu.lists.ByteVector
gnu.lists.U8Vector
- All Implemented Interfaces:
- Array, Consumable, Sequence, java.io.Externalizable, java.io.Serializable, java.lang.Comparable, java.lang.Iterable, java.util.Collection, java.util.List
public class U8Vector
- extends ByteVector
Simple adjustable-length vector of unsigned 8-bit integers (bytes).
- See Also:
- Serialized Form
Fields inherited from interface gnu.lists.Sequence |
ATTRIBUTE_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 |
Method Summary |
int |
compareTo(java.lang.Object obj)
|
java.lang.Object |
get(int index)
See java.util.List. |
java.lang.Object |
getBuffer(int index)
|
int |
getElementKind()
|
java.lang.String |
getTag()
This is convenience hack for printing "uniform vectors" (srfi 4). |
int |
intAtBuffer(int index)
|
java.lang.Object |
setBuffer(int index,
java.lang.Object value)
|
Methods inherited from class gnu.lists.ByteVector |
byteAt, byteAtBuffer, clearBuffer, consumeNext, consumePosRange, getBuffer, getBufferLength, readExternal, setBufferLength, setByteAt, setByteAtBuffer, writeExternal |
Methods inherited from class gnu.lists.SimpleVector |
add, add, addAll, addPos, clear, compareToInt, compareToLong, consume, createPos, fill, fill, fillPosRange, getNextKind, getPosNext, getRowMajor, intAt, isAfterPos, longAt, longAtBuffer, nextIndex, nextPos, remove, remove, removeAll, removePos, removePosRange, resizeShift, retainAll, set, setSize, shift, size, transpose |
Methods inherited from class gnu.lists.AbstractSequence |
addAll, compare, compare, compare, consume, contains, containsAll, copyPos, createRelativePos, elements, endPos, equals, equals, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextTypeName, getNextTypeObject, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray |
U8Vector
public U8Vector()
U8Vector
public U8Vector(int size,
byte value)
U8Vector
public U8Vector(int size)
U8Vector
public U8Vector(byte[] data)
U8Vector
public U8Vector(Sequence seq)
intAtBuffer
public final int intAtBuffer(int index)
- Overrides:
intAtBuffer
in class SimpleVector
get
public final java.lang.Object get(int index)
- Description copied from class:
AbstractSequence
- See java.util.List.
- Specified by:
get
in interface Sequence
- Specified by:
get
in interface java.util.List
- Overrides:
get
in class SimpleVector
getBuffer
public final java.lang.Object getBuffer(int index)
- Specified by:
getBuffer
in class SimpleVector
setBuffer
public java.lang.Object setBuffer(int index,
java.lang.Object value)
- Specified by:
setBuffer
in class SimpleVector
getElementKind
public int getElementKind()
- Overrides:
getElementKind
in class SimpleVector
getTag
public java.lang.String getTag()
- Description copied from class:
SimpleVector
- This is convenience hack for printing "uniform vectors" (srfi 4).
It may go away without notice!
- Overrides:
getTag
in class SimpleVector
compareTo
public int compareTo(java.lang.Object obj)