public static interface CanonicalStringSet.Canonicalizer
String map(Object o)
o
.
This method is expected to be an idempotent function, i.e. it shall
have no side effects and the result of calling the function for its
result again at least compares Object.equals(java.lang.Object)
to its initial
result.
E.g. the method Object.toString()
is a simple implementation
of this method because you could call it several times on its result:
The first call results in a string and each subsequent call would
return the same string again.o
- The Object to map to its canonical string representation.o
.Copyright © 2012–2018 Schlichtherle IT Services. All rights reserved.