public abstract class PrecisProfile extends Object implements Comparator<CharSequence>
PrecisProfiles| Modifier and Type | Method and Description |
|---|---|
int |
compare(CharSequence o1,
CharSequence o2)
Compares two strings with each other.
|
String |
enforce(CharSequence input)
Enforcement entails applying all of the rules specified for a
particular string class or profile thereof to an individual
string, for the purpose of determining if the string can be used
in a given protocol slot.
|
String |
prepare(CharSequence input)
Preparation entails only ensuring that the characters in an
individual string are allowed by the underlying PRECIS string
class.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic String prepare(CharSequence input)
input - The input string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).public String enforce(CharSequence input)
input - The input string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).public int compare(CharSequence o1, CharSequence o2)
compare in interface Comparator<CharSequence>o1 - The first string.o2 - The second string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).Copyright © 2014–2016 XMPP.rocks. All rights reserved.