private static class StringFormat.FillCharInfo extends StringFormat.CharInfo
Modifier and Type | Field and Description |
---|---|
private char |
fillChar
Fill char.
|
Constructor and Description |
---|
FillCharInfo(char ch)
Initializes the instance with the given fill char.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorNum()
Get the number of the error shown if this char is invalid.
|
char |
getFillChar()
Returns fill char.
|
int |
getValueIndex()
Returns (-1) because it is fill char.
|
java.lang.String |
validateChar(char ch)
Validates character against format rules.
|
makeValueChar
public FillCharInfo(char ch)
ch
- Fill char. May be (char)0 if it is the empty fill char.public int getValueIndex()
getValueIndex
in class StringFormat.CharInfo
public char getFillChar()
getFillChar
in class StringFormat.CharInfo
public java.lang.String validateChar(char ch)
validateChar
in class StringFormat.CharInfo
ch
- Character to check.UnsupportedOperationException
.public int getErrorNum()
getErrorNum
in class StringFormat.CharInfo
UnsupportedOperationException
.