Package com.db4o.reflect.generic
Class GenericObject
- java.lang.Object
-
- com.db4o.reflect.generic.GenericObject
-
- All Implemented Interfaces:
java.lang.Comparable
public class GenericObject extends java.lang.Object implements java.lang.Comparable
-
-
Constructor Summary
Constructors Constructor Description GenericObject(GenericClass clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
java.lang.Object
get(int index)
GenericClass
getGenericClass()
void
set(int index, java.lang.Object value)
java.lang.String
toString()
-
-
-
Constructor Detail
-
GenericObject
public GenericObject(GenericClass clazz)
-
-
Method Detail
-
set
public void set(int index, java.lang.Object value)
-
get
public java.lang.Object get(int index)
- Parameters:
index
-- Returns:
- the value of the field at index, based on the fields obtained GenericClass.getDeclaredFields
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getGenericClass
public GenericClass getGenericClass()
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
-