Package org.assertj.db.type.lettercase
Class LetterCase
java.lang.Object
org.assertj.db.type.lettercase.LetterCase
- All Implemented Interfaces:
Comparator<String>,CaseComparison,CaseConversion
The letter case which indicates a case conversion and a case comparison.
- Since:
- 1.1.0
- Author:
- Régis Pouiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LetterCaseThe default letter case for table.static final LetterCaseThe default letter case for table.static final LetterCaseThe default letter case for table. -
Method Summary
Modifier and TypeMethodDescriptionintConverts theStringin parameter to another.Returns the name of the comparison.Returns the name of the conversion.static LetterCasegetLetterCase(CaseConversion conversion, CaseComparison comparison) Returns a instance of a letter case.booleanReturns ifvalue1is equal tovalue2.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
TABLE_DEFAULT
The default letter case for table. -
COLUMN_DEFAULT
The default letter case for table. -
PRIMARY_KEY_DEFAULT
The default letter case for table.
-
-
Method Details
-
getLetterCase
Returns a instance of a letter case. -
getComparisonName
Returns the name of the comparison.- Specified by:
getComparisonNamein interfaceCaseComparison- Returns:
- The name of the comparison.
-
isEqual
Returns ifvalue1is equal tovalue2.- Specified by:
isEqualin interfaceCaseComparison- Parameters:
value1- The first value to compare.value2- The second value to compare.- Returns:
- If the two values are equal.
-
compare
- Specified by:
comparein interfaceComparator<String>
-
getConversionName
Returns the name of the conversion.- Specified by:
getConversionNamein interfaceCaseConversion- Returns:
- The name of the conversion.
-
convert
Converts theStringin parameter to another.- Specified by:
convertin interfaceCaseConversion- Parameters:
value- TheStringto convert.- Returns:
- The result.
-