public enum InterfaceType extends java.lang.Enum<InterfaceType>
Enum Constant and Description |
---|
COMPARABLE |
COMPARATOR_NESTED |
COMPARATOR_TOP_LEVEL |
Modifier and Type | Method and Description |
---|---|
(package private) abstract java.lang.String |
compose(boolean useGenerics,
java.lang.String gClass,
java.lang.String oClass,
java.lang.String comment,
SortKey... sortKeys)
compose Java code for this interface type
|
(package private) abstract int |
scrollTo()
after code in generated, where to jump to in the scroll
|
static InterfaceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InterfaceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterfaceType COMPARABLE
public static final InterfaceType COMPARATOR_TOP_LEVEL
public static final InterfaceType COMPARATOR_NESTED
public static InterfaceType[] values()
for (InterfaceType c : InterfaceType.values()) System.out.println(c);
public static InterfaceType 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 nullabstract java.lang.String compose(boolean useGenerics, java.lang.String gClass, java.lang.String oClass, java.lang.String comment, SortKey... sortKeys)
useGenerics
- true if want code generated using generics.gClass
- class name of the Comparator we are generating.oClass
- class name of Objects we are comparing.comment
- comment about what the generated class does.sortKeys
- array of SortKeys for fields to be sortedabstract int scrollTo()