|
||||||||||
| 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
| Field Summary | |
|---|---|
protected int |
size
Total number of objects in the IntBuffer |
| Constructor Summary | |
|---|---|
FastObjectBuffer()
FastIntBuffer constructor comment. |
|
FastObjectBuffer(int e)
Constructor with adjustable buffer page size of the value bfz |
|
| Method Summary | |
|---|---|
void |
append(Object obj)
Append a single object to the end of this buffer Instance |
void |
append(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. |
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,
Object newValue)
Assigns a new int value to location index of the buffer instance. |
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 |
Object[] |
toObjectArray()
Returns the object array corresponding to all objects in this buffer instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int size
| Constructor Detail |
|---|
public FastObjectBuffer()
public FastObjectBuffer(int e)
e - int| Method Detail |
|---|
public void append(Object[] obj_array)
obj_array - Object[]public final void append(Object obj)
obj - public final int getCapacity()
public Object[] getObjectArray(int startingOffset,
int len)
startingOffset - intlen - int
public final int getPageSize()
public final Object objectAt(int index)
index - int
public final void modifyEntry(int index,
Object newValue)
index - intnewValue - intpublic final int size()
public Object[] toObjectArray()
public final void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||