Methods Summary |
---|
public boolean | defaulted(java.lang.String name)Return a boolean indicating if the field named name has
been assigned a value explicitly (false) or if it still holds a default
value for the type (true) because it hasn't been assigned to yet.
return emulatedFields.defaulted(name);
|
EmulatedFields | emulatedFields()Return the actual EmulatedFields instance used by the receiver. We have
the actual work in a separate class so that the code can be shared. The
receiver has to be of a subclass of GetField.
return emulatedFields;
|
public java.lang.Object | get(java.lang.String name, java.lang.Object defaultValue)Find and return the Object value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public short | get(java.lang.String name, short defaultValue)Find and return the short value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public boolean | get(java.lang.String name, boolean defaultValue)Find and return the boolean value of a given field named
name in the receiver. If the field has not been assigned
any value yet, the default value defaultValue is returned
instead.
return emulatedFields.get(name, defaultValue);
|
public byte | get(java.lang.String name, byte defaultValue)Find and return the byte value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public char | get(java.lang.String name, char defaultValue)Find and return the char value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public double | get(java.lang.String name, double defaultValue)Find and return the double value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public float | get(java.lang.String name, float defaultValue)Find and return the float value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public int | get(java.lang.String name, int defaultValue)Find and return the int value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public long | get(java.lang.String name, long defaultValue)Find and return the long value of a given field named name
in the receiver. If the field has not been assigned any value yet, the
default value defaultValue is returned instead.
return emulatedFields.get(name, defaultValue);
|
public java.io.ObjectStreamClass | getObjectStreamClass()Return the class descriptor for which the emulated fields are defined.
return streamClass;
|