Modifier and Type | Field and Description |
---|---|
protected int[] |
values
this is where we store the instance data.
|
fieldAttrs, objectAttr
Constructor and Description |
---|
NamedFields(int dataSize) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(IntVector v) |
int[] |
asFieldSlots() |
NamedFields |
clone()
Creates a clone.
|
void |
copyFrom(Fields other) |
boolean |
equals(Object o)
Checks for equality.
|
boolean |
getBooleanValue(int index) |
byte |
getByteValue(int index) |
char |
getCharValue(int index) |
double |
getDoubleValue(int index) |
float |
getFloatValue(int index) |
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.
|
int |
getIntValue(int index) |
long |
getLongValue(int index) |
int[] |
getRawValues() |
int |
getReferenceValue(int index) |
short |
getShortValue(int index) |
int[] |
getValues() |
void |
hash(HashData hd)
Adds some data to the computation of an hashcode.
|
boolean |
isEqual(Fields o,
int off,
int len,
int otherOff) |
void |
setBooleanValue(int index,
boolean newValue) |
void |
setByteValue(int index,
byte newValue) |
void |
setCharValue(int index,
char newValue) |
void |
setDoubleValue(int index,
double newValue) |
void |
setFloatValue(int index,
float newValue) |
void |
setIntValue(int index,
int newValue) |
void |
setLongValue(int index,
long newValue) |
void |
setReferenceValue(int index,
int newValue) |
void |
setShortValue(int index,
short newValue) |
int |
size()
Size of the fields.
|
String |
toString() |
addFieldAttr, addObjectAttr, cloneFields, compareAttrs, copyAttrs, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, isReferenceArray, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttr
protected int[] values
public int[] asFieldSlots()
asFieldSlots
in class Fields
public int getHeapSize()
getHeapSize
in class Fields
public int getIntValue(int index)
getIntValue
in class Fields
public boolean isEqual(Fields o, int off, int len, int otherOff)
public int getReferenceValue(int index)
getReferenceValue
in class Fields
public long getLongValue(int index)
getLongValue
in class Fields
public boolean getBooleanValue(int index)
getBooleanValue
in class Fields
public byte getByteValue(int index)
getByteValue
in class Fields
public char getCharValue(int index)
getCharValue
in class Fields
public short getShortValue(int index)
getShortValue
in class Fields
public int[] getValues()
public void setReferenceValue(int index, int newValue)
setReferenceValue
in class Fields
public void setBooleanValue(int index, boolean newValue)
setBooleanValue
in class Fields
public void setByteValue(int index, byte newValue)
setByteValue
in class Fields
public void setCharValue(int index, char newValue)
setCharValue
in class Fields
public void setShortValue(int index, short newValue)
setShortValue
in class Fields
public void setFloatValue(int index, float newValue)
setFloatValue
in class Fields
public void setIntValue(int index, int newValue)
setIntValue
in class Fields
public void setLongValue(int index, long newValue)
setLongValue
in class Fields
public void setDoubleValue(int index, double newValue)
setDoubleValue
in class Fields
public float getFloatValue(int index)
getFloatValue
in class Fields
public double getDoubleValue(int index)
getDoubleValue
in class Fields
public NamedFields clone()
public void hash(HashData hd)
public int size()
public int[] getRawValues()
public void copyFrom(Fields other)