org.freecompany.util.text
Class Comparison
public
class
Comparison
extends Object
Method Summary |
static Comparator | comparator()
Creates a case sensitive comparator for use in collections. |
static Comparator | comparator(boolean sensitive)
Creates a comparator for use in collections that is case senstive only if the
provided flag is set to true. |
static int | compare(CharSequence one, CharSequence two)
Compares two sequences for equality sensitive to case. |
static int | compare(CharSequence one, CharSequence two, boolean sensitive)
Compares two sequences for equality sensitive to case only if the provided flag is true. |
static int | compare(char one, char two)
Compares two chars for equality sensitive to case. |
static int | compare(char one, char two, boolean sensitive)
Compares two chars for equality sensitive to case only if the provided flag is true. |
static boolean | equals(char one, char two)
Compares two chars for equality sensitive to case. |
static boolean | equals(char one, char two, boolean sensitive)
Compares two chars for equality sensitive to case only if the provided flag is true. |
static boolean | equals(CharSequence one, CharSequence two)
Compares two sequences for equality sensitive to case. |
static boolean | equals(CharSequence one, CharSequence two, boolean sensitive)
Compares two sequences for equality sensitive to case only if the provided flag is true. |
public static final Comparator comparator()
Creates a case sensitive comparator for use in collections.
public static final Comparator comparator(boolean sensitive)
Creates a comparator for use in collections that is case senstive only if the
provided flag is set to true.
public static final int compare(CharSequence one, CharSequence two)
Compares two sequences for equality sensitive to case.
public static final int compare(CharSequence one, CharSequence two, boolean sensitive)
Compares two sequences for equality sensitive to case only if the provided flag is true.
public static final int compare(char one, char two)
Compares two chars for equality sensitive to case.
public static final int compare(char one, char two, boolean sensitive)
Compares two chars for equality sensitive to case only if the provided flag is true.
public static final boolean equals(char one, char two)
Compares two chars for equality sensitive to case.
public static final boolean equals(char one, char two, boolean sensitive)
Compares two chars for equality sensitive to case only if the provided flag is true.
public static final boolean equals(CharSequence one, CharSequence two)
Compares two sequences for equality sensitive to case.
public static final boolean equals(CharSequence one, CharSequence two, boolean sensitive)
Compares two sequences for equality sensitive to case only if the provided flag is true.