public interface Canonicalizable
Canonical representation is a completely unique representation of given value, that can be used to store a value in form of string, and reconstruct it back.
Mask is a description of string form that represents a value. Definition and interpretation of masks is considered a responsibility of implementing classes. Representations specified by masks are not guaranteed or required to be unique.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toCanonicalRepresentation()
Returns completely unique string representation with one-to-one correspondence to a value represented by this instance.
|
java.lang.String |
toRepresentation(java.lang.CharSequence mask)
Returns a string that represents this value according to user-provided mask.
|
java.lang.String toCanonicalRepresentation()
java.lang.String toRepresentation(java.lang.CharSequence mask)
mask
- is a rule by which value is converted to string.