public class ShortArrayFields extends ArrayFields
fieldAttrs, objectAttr| Constructor and Description |
|---|
ShortArrayFields(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(IntVector v) |
int |
arrayLength() |
short[] |
asShortArray() |
ShortArrayFields |
clone() |
boolean |
equals(Object o)
default implementation is just an identity check
|
int |
getHeapSize()
give an approximation of the heap size in bytes - we assume fields are word
aligned, hence the number of values*4 should be good.
|
short |
getShortValue(int pos) |
Object |
getValues() |
void |
hash(HashData hd) |
protected void |
printValue(PrintStream ps,
int idx) |
void |
setShortValue(int pos,
short newValue) |
asBooleanArray, asByteArray, asCharArray, asCharArray, asDoubleArray, asFieldSlots, asFloatArray, asIntArray, asLongArray, asReferenceArray, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberOfFields, getReferenceValue, isReferenceArray, printElements, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReferenceValueaddFieldAttr, addObjectAttr, cloneFields, compareAttrs, copyAttrs, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttrpublic short[] asShortArray()
asShortArray in class ArrayFieldsprotected void printValue(PrintStream ps, int idx)
printValue in class ArrayFieldspublic Object getValues()
getValues in class ArrayFieldspublic int arrayLength()
arrayLength in class ArrayFieldspublic int getHeapSize()
FieldsgetHeapSize in class ArrayFieldspublic ShortArrayFields clone()
public boolean equals(Object o)
Objectpublic short getShortValue(int pos)
getShortValue in class ArrayFieldspublic void setShortValue(int pos,
short newValue)
setShortValue in class ArrayFields