goodslib
Class ArrayOfByte
java.lang.Object
goodsjpi.Persistent
goodslib.AnyArray
goodslib.ArrayOfByte
- All Implemented Interfaces:
- java.io.Serializable
- public class ArrayOfByte
- extends AnyArray
ArrayOfByte
is just that, an array of bytes. It is fully
persistent, as it it's derived from Persistent. All reads cause a fetch of the
data, all writes mark it dirty and to be saved.
- See Also:
- Serialized Form
Field Summary |
protected byte[] |
array
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
array
protected byte[] array
ArrayOfByte
public ArrayOfByte(int size)
ArrayOfByte
public ArrayOfByte(int size,
int allocatedSize)
ArrayOfByte
public ArrayOfByte(byte[] src)
putAt
public void putAt(int index,
byte value)
getAt
public byte getAt(int index)
changeSize
public void changeSize(int newSize)
insert
public void insert(int index,
int count,
byte value)
remove
public void remove(int index,
int count)
push
public void push(byte value)
pop
public byte pop()
top
public byte top()
append
public void append(byte[] tail)
compare
public int compare(byte[] s)
compare
public int compare(ArrayOfByte a)
toString
public java.lang.String toString()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Persistent
equals
public boolean equals(java.lang.Object obj)
toArray
public byte[] toArray()
copy
public void copy(int dstIndex,
byte[] src,
int srcIndex,
int count)
indexOf
public int indexOf(byte val)
lastIndexOf
public int lastIndexOf(byte val)