|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMemory
Class Memory has static utility methods for allocating, clearing, and dumping an Object-valued memory array.
Constructor Summary | |
Memory()
|
Method Summary | |
static java.lang.Object[] |
allocate(int size)
Allocate an Object-valued memory array of the given size. |
static void |
clear(java.lang.Object[] mem)
Set all elements of the given memory to null. |
static void |
dump(java.lang.Object[] mem,
int numElems)
Dump the given number of elements in the given memory to stdout. |
static void |
dump(java.lang.Object[] mem,
int startElem,
int endElem)
Dump the given memory to stdout, from the given startElem to endElem indices, inclusive. |
static void |
dump(java.lang.Object[] mem,
int startElem,
int endElem,
int indent)
Same as dump(Object[], int, int), but with indent of locations. |
static void |
dumpRelative(java.lang.Object[] mem,
int startElem,
int endElem)
Dump the given memory to stdout, from the given startElem to endElem indices, inclusive. |
static void |
dumpRelative(java.lang.Object[] mem,
int startElem,
int endElem,
int indent)
Same as dumpRelative, but with indent of locations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Memory()
Method Detail |
public static java.lang.Object[] allocate(int size)
public static void clear(java.lang.Object[] mem)
public static void dump(java.lang.Object[] mem, int numElems)
public static void dump(java.lang.Object[] mem, int startElem, int endElem)
public static void dumpRelative(java.lang.Object[] mem, int startElem, int endElem)
public static void dump(java.lang.Object[] mem, int startElem, int endElem, int indent)
public static void dumpRelative(java.lang.Object[] mem, int startElem, int endElem, int indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |