Methods Summary |
---|
public boolean | defaulted(java.lang.String name)Return true if the named field is defaulted and has no value
in this stream.
return (!fields.containsKey(name));
|
public float | get(java.lang.String name, float defvalue)Get the value of the named float field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Float)fields.get(name)).floatValue();
|
public double | get(java.lang.String name, double defvalue)Get the value of the named double field from the persistent field.
if (defaulted(name))
return defvalue;
else return ((Double)fields.get(name)).doubleValue();
|
public java.lang.Object | get(java.lang.String name, java.lang.Object defvalue)Get the value of the named Object field from the persistent field.
if (defaulted(name))
return defvalue;
else return fields.get(name);
|
public boolean | get(java.lang.String name, boolean defvalue)Get the value of the named boolean field from the persistent field.
if (defaulted(name))
return defvalue;
else return ((Boolean)fields.get(name)).booleanValue();
|
public char | get(java.lang.String name, char defvalue)Get the value of the named char field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Character)fields.get(name)).charValue();
|
public byte | get(java.lang.String name, byte defvalue)Get the value of the named byte field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Byte)fields.get(name)).byteValue();
|
public short | get(java.lang.String name, short defvalue)Get the value of the named short field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Short)fields.get(name)).shortValue();
|
public int | get(java.lang.String name, int defvalue)Get the value of the named int field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Integer)fields.get(name)).intValue();
|
public long | get(java.lang.String name, long defvalue)Get the value of the named long field from the persistent fields.
if (defaulted(name))
return defvalue;
else return ((Long)fields.get(name)).longValue();
|
public java.io.ObjectStreamClass | getObjectStreamClass()Get the ObjectStreamClass that describes the fields in the stream.
return null;
|
public java.lang.String | toString()
return fields.toString();
|