public class LetterCase extends Object implements CaseConversion, CaseComparison
Modifier and Type | Field and Description |
---|---|
static LetterCase |
COLUMN_DEFAULT
The default letter case for table.
|
static LetterCase |
PRIMARY_KEY_DEFAULT
The default letter case for table.
|
static LetterCase |
TABLE_DEFAULT
The default letter case for table.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(String value1,
String value2) |
String |
convert(String value)
Converts the
String in parameter to another. |
String |
getComparisonName()
Returns the name of the comparison.
|
String |
getConversionName()
Returns the name of the conversion.
|
static LetterCase |
getLetterCase(CaseConversion conversion,
CaseComparison comparison)
Returns a instance of a letter case.
|
boolean |
isEqual(String value1,
String value2)
Returns if
value1 is equal to value2 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final LetterCase TABLE_DEFAULT
public static final LetterCase COLUMN_DEFAULT
public static final LetterCase PRIMARY_KEY_DEFAULT
public static LetterCase getLetterCase(CaseConversion conversion, CaseComparison comparison)
public String getComparisonName()
getComparisonName
in interface CaseComparison
public boolean isEqual(String value1, String value2)
value1
is equal to value2
.isEqual
in interface CaseComparison
value1
- The first value to compare.value2
- The second value to compare.public int compare(String value1, String value2)
compare
in interface Comparator<String>
public String getConversionName()
getConversionName
in interface CaseConversion
Copyright © 2020 AssertJ. All rights reserved.