public enum FieldType extends java.lang.Enum<FieldType>
Enum Constant and Description |
---|
BOOLEAN |
CASE_INSENSITIVE_STRING |
CASE_SENSITIVE_STRING |
CHAR |
COMPARABLE |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
SIGNEDBYTE |
SPARE |
STRING_LENGTH |
UNSIGNEDBYTE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateIntermediateCompareToLine(boolean useGenerics,
boolean isComparator,
java.lang.String oClass,
boolean isFieldDescending,
java.lang.String fieldName,
int unique)
generate Java code to compare two fields,
when it is not the last field being compared.
|
java.lang.String |
generateLastCompareToLine(boolean useGenerics,
boolean isComparable,
java.lang.String oClass,
boolean isFieldDescending,
java.lang.String fieldName)
generate Java code to compare two fields, when it is the last field being compared.
|
java.lang.String |
getDiffType()
get the Java type of the diff variable
|
java.lang.String |
getSortType()
how you would describe the sorting order.
|
java.lang.String |
toString()
string for JComboBox display
|
static FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldType SPARE
public static final FieldType CASE_SENSITIVE_STRING
public static final FieldType CASE_INSENSITIVE_STRING
public static final FieldType STRING_LENGTH
public static final FieldType COMPARABLE
public static final FieldType BOOLEAN
public static final FieldType SIGNEDBYTE
public static final FieldType UNSIGNEDBYTE
public static final FieldType SHORT
public static final FieldType CHAR
public static final FieldType INT
public static final FieldType LONG
public static final FieldType FLOAT
public static final FieldType DOUBLE
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String generateIntermediateCompareToLine(boolean useGenerics, boolean isComparator, java.lang.String oClass, boolean isFieldDescending, java.lang.String fieldName, int unique)
useGenerics
- true if want code generated using genericsisComparator
- true if generated a Comparable, false if a ComparatoroClass
- the class of the objects being compared.isFieldDescending
- true if want a descending comparisonfieldName
- name of field being compared.unique
- number to generate unique variables 1..npublic java.lang.String generateLastCompareToLine(boolean useGenerics, boolean isComparable, java.lang.String oClass, boolean isFieldDescending, java.lang.String fieldName)
useGenerics
- true if want code generated using genericsisComparable
- true if want a code for a Comparable, false for a ComparatoroClass
- the class of the objects being compared.isFieldDescending
- true if want a descending comparisonfieldName
- name of sort key fieldpublic java.lang.String getDiffType()
public java.lang.String getSortType()
public java.lang.String toString()
toString
in class java.lang.Enum<FieldType>