gnu.lists
public class FVector extends SimpleVector implements Externalizable, Consumable, Comparable
Field Summary | |
---|---|
Object[] | data |
protected static Object[] | empty |
Constructor Summary | |
---|---|
FVector() | |
FVector(int num) | |
FVector(int num, Object o) | |
FVector(Object[] data) Reuses the argument without making a copy! | |
FVector(List seq) |
Method Summary | |
---|---|
protected void | clearBuffer(int start, int count) |
int | compareTo(Object obj) |
void | consume(Consumer out) |
boolean | consumeNext(int ipos, Consumer out) |
void | consumePosRange(int iposStart, int iposEnd, Consumer out) |
boolean | equals(Object obj) |
Object | get(int index) |
protected Object | getBuffer() |
Object | getBuffer(int index) |
int | getBufferLength() Get the allocated length of the data buffer. |
void | readExternal(ObjectInput in) |
void | setAll(Object new_value) |
Object | setBuffer(int index, Object value) |
void | setBufferLength(int length) |
void | shift(int srcStart, int dstStart, int count) |
void | writeExternal(ObjectOutput out) |
Serial Data: Write the number of elements (using writeInt), followed by the elements in order (written using writeObject). (It might seem simpler (and increase sharing) to just call writeObject(value), but that exposes the implementation.)