Field
open class Field : Format.Field
| kotlin.Any | |||
| ↳ | java.text.AttributedCharacterIterator.Attribute | ||
| ↳ | java.text.Format.Field | ||
| ↳ | java.text.NumberFormat.Field | ||
Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from NumberFormat.formatToCharacterIterator and as field identifiers in FieldPosition.
Summary
| Protected constructors | |
|---|---|
| 
            
             Creates a Field instance with the specified name.  | 
        |
| Protected methods | |
|---|---|
| open Any | 
            
             Resolves instances being deserialized to the predefined constants.  | 
        
| Properties | |
|---|---|
| static NumberFormat.Field | 
            
             Constant identifying the currency field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the decimal separator field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the exponent field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the exponent sign field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the exponent symbol field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the fraction field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the grouping separator field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the integer field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the percent field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the permille field.  | 
        
| static NumberFormat.Field | 
            
             Constant identifying the sign field.  | 
        
Protected constructors
Field
protected Field(name: String)
Creates a Field instance with the specified name.
| Parameters | |
|---|---|
name | 
            String: Name of the attribute | 
Protected methods
readResolve
protected open fun readResolve(): Any
Resolves instances being deserialized to the predefined constants.
| Return | |
|---|---|
Any | 
            resolved NumberFormat.Field constant | 
| Exceptions | |
|---|---|
java.io.InvalidObjectException | 
            if the constant could not be resolved. | 
Properties
CURRENCY
static val CURRENCY: NumberFormat.Field
Constant identifying the currency field.
DECIMAL_SEPARATOR
static val DECIMAL_SEPARATOR: NumberFormat.Field
Constant identifying the decimal separator field.
EXPONENT
static val EXPONENT: NumberFormat.Field
Constant identifying the exponent field.
EXPONENT_SIGN
static val EXPONENT_SIGN: NumberFormat.Field
Constant identifying the exponent sign field.
EXPONENT_SYMBOL
static val EXPONENT_SYMBOL: NumberFormat.Field
Constant identifying the exponent symbol field.
FRACTION
static val FRACTION: NumberFormat.Field
Constant identifying the fraction field.
GROUPING_SEPARATOR
static val GROUPING_SEPARATOR: NumberFormat.Field
Constant identifying the grouping separator field.
INTEGER
static val INTEGER: NumberFormat.Field
Constant identifying the integer field.
PERCENT
static val PERCENT: NumberFormat.Field
Constant identifying the percent field.
PERMILLE
static val PERMILLE: NumberFormat.Field
Constant identifying the permille field.