|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ximpleware.FastObjectBuffer
public class FastObjectBuffer
Fast object array implementation
Constructor Summary | |
---|---|
FastObjectBuffer()
FastIntBuffer constructor comment. |
|
FastObjectBuffer(int e)
Constructor with adjustable buffer page size of the value bfz |
Method Summary | |
---|---|
void |
append(java.lang.Object obj)
Append a single object to the end of this buffer Instance |
void |
append(java.lang.Object[] obj_array)
Append an object array to the end of this buffer instance |
void |
clear()
set the size of object buffer to zero, capacity untouched so object buffer can be reused without any unnecessary and additional allocation |
int |
getCapacity()
Returns the total allocated capacity of this buffer instance. |
java.lang.Object[] |
getObjectArray(int startingOffset,
int len)
Returns a single object array representing every object in this buffer instance |
int |
getPageSize()
Returns the page size of this buffer instance. |
void |
modifyEntry(int index,
java.lang.Object newValue)
Assigns a new int value to location index of the buffer instance. |
java.lang.Object |
objectAt(int index)
Get the object at the location specified by index. |
int |
size()
Returns the total number of objects in the buffer instance |
java.lang.Object[] |
toObjectArray()
Returns the object array corresponding to all objects in this buffer instance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastObjectBuffer()
public FastObjectBuffer(int e)
e
- intMethod Detail |
---|
public void append(java.lang.Object obj)
obj
- public void append(java.lang.Object[] obj_array)
obj_array
- Object[]public void clear()
public int getCapacity()
public java.lang.Object[] getObjectArray(int startingOffset, int len)
startingOffset
- intlen
- int
public int getPageSize()
public void modifyEntry(int index, java.lang.Object newValue)
index
- intnewValue
- intpublic java.lang.Object objectAt(int index)
index
- int
public int size()
public java.lang.Object[] toObjectArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |