public static class SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector extends java.lang.Object implements SoftMaskedAlphabet.MaskingDetector
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetectorDEFAULT| Constructor and Description |
|---|
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMasked(java.lang.String token)
Default Behaivour is that if the whole token is lower case it is
masked.
|
java.lang.String |
mask(java.lang.String token)
Masks a token by making it lowercase
|
java.lang.String |
unmask(java.lang.String token)
Un-masks the token by making it upper case.
|
public SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector()
public boolean isMasked(java.lang.String token)
isMasked in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to check for maskingpublic java.lang.String mask(java.lang.String token)
mask in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to maskStringpublic java.lang.String unmask(java.lang.String token)
unmask in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to unmaskString