public class FloatArrayFields extends ArrayFields
fieldAttrs, objectAttr
Constructor and Description |
---|
FloatArrayFields(int length) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(IntVector v) |
int |
arrayLength() |
float[] |
asFloatArray() |
FloatArrayFields |
clone() |
boolean |
equals(Object o)
default implementation is just an identity check
|
float |
getFloatValue(int pos) |
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.
|
Object |
getValues() |
void |
hash(HashData hd) |
protected void |
printValue(PrintStream ps,
int idx) |
void |
setFloatValue(int pos,
float newValue) |
asBooleanArray, asByteArray, asCharArray, asCharArray, asDoubleArray, asFieldSlots, asIntArray, asLongArray, asReferenceArray, asShortArray, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getIntValue, getLongValue, getNumberOfFields, getReferenceValue, getShortValue, isReferenceArray, printElements, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setIntValue, setLongValue, setReferenceValue, setShortValue
addFieldAttr, 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, setObjectAttr
public float[] asFloatArray()
asFloatArray
in class ArrayFields
protected void printValue(PrintStream ps, int idx)
printValue
in class ArrayFields
public Object getValues()
getValues
in class ArrayFields
public int arrayLength()
arrayLength
in class ArrayFields
public int getHeapSize()
Fields
getHeapSize
in class ArrayFields
public FloatArrayFields clone()
public boolean equals(Object o)
Object
public void setFloatValue(int pos, float newValue)
setFloatValue
in class ArrayFields
public float getFloatValue(int pos)
getFloatValue
in class ArrayFields