All Packages Class Hierarchy This Package Previous Next Index
Class java.io.ObjectStreamField
java.lang.Object
|
+----java.io.ObjectStreamField
- public class ObjectStreamField
- extends Object
- implements Comparator
A description of a field in a serializable class.
A array of these is used to declare the persistent fields of
a class.
ObjectStreamField(String, Class)
- Create a named field with the specified type.
compare(Object, Object)
- Compare this with another ObjectStreamField.
getField()
-
getName()
- Get the name of this field.
getOffset()
-
getType()
- Get the type of the field.
getTypeCode()
-
getTypeString()
-
setField(Field)
-
setOffset(int)
-
toString()
- Return a string describing this field.
ObjectStreamField
public ObjectStreamField(String n,
Class clazz)
- Create a named field with the specified type.
getName
public String getName()
- Get the name of this field.
getType
public Class getType()
- Get the type of the field.
getTypeCode
public char getTypeCode()
getTypeString
public String getTypeString()
getField
public Field getField()
setField
public void setField(Field field)
getOffset
public int getOffset()
setOffset
public void setOffset(int offset)
compare
public int compare(Object o1,
Object o2)
- Compare this with another ObjectStreamField.
return -1 if this is smaller, 0 if equal, 1 if greater
types that are primitives are "smaller" than objects.
if equal, the names are compared.
toString
public String toString()
- Return a string describing this field.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature