public class Comparison extends Object
| Constructor and Description |
|---|
Comparison() |
| Modifier and Type | Method and Description |
|---|---|
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(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 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 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()
public static final Comparator comparator(boolean sensitive)
public static final boolean equals(char one,
char two)
public static final boolean equals(char one,
char two,
boolean sensitive)
public static final boolean equals(CharSequence one, CharSequence two)
public static final boolean equals(CharSequence one, CharSequence two, boolean sensitive)
public static final int compare(CharSequence one, CharSequence two)
public static final int compare(CharSequence one, CharSequence two, boolean sensitive)
public static final int compare(char one,
char two)
public static final int compare(char one,
char two,
boolean sensitive)
Copyright © 2023. All rights reserved.