de.espirit.or
Enum CaseMode
java.lang.Object
java.lang.Enum<CaseMode>
de.espirit.or.CaseMode
- All Implemented Interfaces:
- Serializable, Comparable<CaseMode>
public enum CaseMode
- extends Enum<CaseMode>
The different case modes (CaseMode.UPPER_CASE
, CaseMode.LOWER_CASE
, and CaseMode.MIXED_CASE
) a database may
support. Use CaseMode.convertCase(String)
to convert identifiers to the appropiate supported case. Use
CaseMode.getComparator()
for comparison - e.g. MIXED_CASE.getComparator("test", "Test") yields 0
.
- Since:
- 4.1.11
UPPER_CASE
public static final CaseMode UPPER_CASE
- Since:
- 4.1.11
LOWER_CASE
public static final CaseMode LOWER_CASE
- Since:
- 4.1.11
MIXED_CASE
public static final CaseMode MIXED_CASE
- Since:
- 4.1.11
LOWER_CASE_IGNORED_FOR_COMPARE
public static final CaseMode LOWER_CASE_IGNORED_FOR_COMPARE
- Since:
- 4.1.11
values
public static final CaseMode[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CaseMode c : CaseMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CaseMode valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
convertCase
@NotNull
public String convertCase(@NotNull
String value)
- Since:
- 4.1.11
getComparator
@NotNull
public Comparator<String> getComparator()
- Since:
- 4.1.11
isLowerCase
public boolean isLowerCase()
- Since:
- 4.1.10
isUpperCase
public boolean isUpperCase()
- Since:
- 4.1.10
Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480