.
Field Summary |
---|
public static final Field | INTEGER | Constant identifying the integer field. |
public static final Field | FRACTION | Constant identifying the fraction field. |
public static final Field | EXPONENT | Constant identifying the exponent field. |
public static final Field | DECIMAL_SEPARATOR | Constant identifying the decimal separator field. |
public static final Field | SIGN | Constant identifying the sign field. |
public static final Field | GROUPING_SEPARATOR | Constant identifying the grouping separator field. |
public static final Field | EXPONENT_SYMBOL | Constant identifying the exponent symbol field. |
public static final Field | PERCENT | Constant identifying the percent field. |
public static final Field | PERMILLE | Constant identifying the permille field. |
public static final Field | CURRENCY | Constant identifying the currency field. |
public static final Field | EXPONENT_SIGN | Constant identifying the exponent sign field. |
Constructor: |
protected Field(String name) {
super(name);
if (this.getClass() == NumberFormat.Field.class) {
instanceMap.put(name, this);
}
}
Creates a Field instance with the specified
name. Parameters:
name - Name of the attribute
|
Method from java.text.NumberFormat$Field Summary: |
---|
readResolve |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.text.NumberFormat$Field Detail: |
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != NumberFormat.Field.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
}
Object instance = instanceMap.get(getName());
if (instance != null) {
return instance;
} else {
throw new InvalidObjectException("unknown attribute name");
}
}
Resolves instances being deserialized to the predefined constants. |