|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DynamicStorage
Interface for dynamically generated classes. Certain getters/setters
may either return null or throw an exception depending on the
DynamicStorageGenerator
's field policy.
Method Summary | |
---|---|
boolean |
getBoolean(int field)
Get the boolean at the given index. |
byte |
getByte(int field)
Get the byte at the given index. |
char |
getChar(int field)
Get the char at the given index. |
double |
getDouble(int field)
Get the double at the given index. |
int |
getFieldCount()
Return the number of fields, regardless of type |
float |
getFloat(int field)
Get the float at the given index. |
int |
getInt(int field)
Get the int at the given index. |
long |
getLong(int field)
Get the long at the given index. |
Object |
getObject(int field)
Get the object at the given index. |
int |
getObjectCount()
Return the number of object fields |
short |
getShort(int field)
Get the short at the given index. |
void |
initialize()
Ensure object capacity |
DynamicStorage |
newInstance()
Factory method for getting new instances of the same definition. |
void |
setBoolean(int field,
boolean val)
Set the boolean at the given index. |
void |
setByte(int field,
byte val)
Set the byte at the given index. |
void |
setChar(int field,
char val)
Set the char at the given index. |
void |
setDouble(int field,
double val)
Set the double at the given index. |
void |
setFloat(int field,
float val)
Set the float at the given index. |
void |
setInt(int field,
int val)
Set the int at the given index. |
void |
setLong(int field,
long val)
Set the long at the given index. |
void |
setObject(int field,
Object val)
Set the object at the given index. |
void |
setShort(int field,
short val)
Set the short at the given index. |
Method Detail |
---|
int getFieldCount()
int getObjectCount()
DynamicStorage newInstance()
boolean getBoolean(int field)
void setBoolean(int field, boolean val)
byte getByte(int field)
void setByte(int field, byte val)
char getChar(int field)
void setChar(int field, char val)
double getDouble(int field)
void setDouble(int field, double val)
float getFloat(int field)
void setFloat(int field, float val)
int getInt(int field)
void setInt(int field, int val)
long getLong(int field)
void setLong(int field, long val)
short getShort(int field)
void setShort(int field, short val)
Object getObject(int field)
void setObject(int field, Object val)
void initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |