PropertyFormatter
@Deprecated public class AccountNumberFormatter extends DefaultPropertyFormatter
Property
, with all others replaced by an asterisk ('*').
Useful for credit card numbers, social security numbers, etc.
For example, a 16 character String
representing a credit card number would
be formatted as "************1234".
Constructor | Description |
---|---|
AccountNumberFormatter() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
String |
format(Object value) |
Deprecated.
Format a given value.
|
protected char |
getFillChar() |
Deprecated.
|
protected int |
getPlaintextChars() |
Deprecated.
|
protected void |
setFillChar(char fillChar) |
Deprecated.
|
protected void |
setPlaintextChars(int plaintextChars) |
Deprecated.
|
initialize
public String format(Object value)
PropertyFormatter
format
in interface PropertyFormatter
format
in class DefaultPropertyFormatter
value
- the value to formatprotected int getPlaintextChars()
protected void setPlaintextChars(int plaintextChars)
protected char getFillChar()
protected void setFillChar(char fillChar)
Copyright © 2008–2018. All rights reserved.