Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.lists.AbstractSequence
gnu.lists.SimpleVector
gnu.lists.U16Vector
Field Summary |
Fields inherited from class gnu.lists.SimpleVector | |
size |
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 , 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 , eofValue |
Method Summary | |
protected void |
|
int |
|
boolean |
|
void |
|
Object |
|
protected Object | |
Object |
|
int |
|
int | |
String |
|
int |
|
void |
|
Object |
|
void |
|
void |
|
void |
|
short |
|
short |
|
void |
|
Methods inherited from class gnu.lists.SimpleVector | |
add , add , addAll , addPos , clear , clearBuffer , compareToInt , compareToLong , consume , consumeNext , consumePosRange , createPos , fill , fill , fillPosRange , get , getBuffer , getBuffer , getBufferLength , getElementKind , getNextKind , getPosNext , getRowMajor , getTag , intAt , intAtBuffer , isAfterPos , longAt , longAtBuffer , nextIndex , nextPos , remove , remove , removeAll , removePos , removePosRange , retainAll , set , setBuffer , setBufferLength , setSize , shift , size , transpose |
public U16Vector()
public U16Vector(int size)
public U16Vector(int size, short value)
public U16Vector(short[] data)
protected void clearBuffer(int start, int count)
- Overrides:
- clearBuffer in interface SimpleVector
public int compareTo(Object obj)
public boolean consumeNext(int ipos, Consumer out)
Copy an element specified by a position pair to a Consumer.
- Overrides:
- consumeNext in interface SimpleVector
- Returns:
- if hasNext(ipos).
public void consumePosRange(int iposStart, int iposEnd, Consumer out)
- Overrides:
- consumePosRange in interface SimpleVector
public int getBufferLength()
Get the allocated length of the data buffer.
- Overrides:
- getBufferLength in interface SimpleVector
public String getTag()
This is convenience hack for printing "uniform vectors" (srfi 4). It may go away without notice!
- Overrides:
- getTag in interface SimpleVector
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public Object setBuffer(int index, Object value)
- Overrides:
- setBuffer in interface SimpleVector
public void setBufferLength(int length)
- Overrides:
- setBufferLength in interface SimpleVector
public final void setShortAt(int index, short value)
public final void setShortAtBuffer(int index, short value)
public final short shortAt(int index)
public final short shortAtBuffer(int index)
public void writeExternal(ObjectOutput out) throws IOException