protected static enum EqualsMethod.TypePropertyComparator extends java.lang.Enum<EqualsMethod.TypePropertyComparator> implements java.util.Comparator<FieldDescription.InDefinedShape>
Enum Constant and Description |
---|
FOR_ENUMERATION_TYPES
Weights enumeration types before non-enumeration types.
|
FOR_PRIMITIVE_TYPES
Weights primitive types before non-primitive types.
|
FOR_PRIMITIVE_WRAPPER_TYPES
Weights primitive wrapper types first.
|
FOR_STRING_TYPES
Weights
String types first. |
Modifier and Type | Method and Description |
---|---|
int |
compare(FieldDescription.InDefinedShape left,
FieldDescription.InDefinedShape right) |
protected abstract boolean |
resolve(TypeDefinition typeDefinition)
Resolves a type property.
|
static EqualsMethod.TypePropertyComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EqualsMethod.TypePropertyComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EqualsMethod.TypePropertyComparator FOR_PRIMITIVE_TYPES
public static final EqualsMethod.TypePropertyComparator FOR_ENUMERATION_TYPES
public static final EqualsMethod.TypePropertyComparator FOR_STRING_TYPES
String
types first.public static final EqualsMethod.TypePropertyComparator FOR_PRIMITIVE_WRAPPER_TYPES
public static EqualsMethod.TypePropertyComparator[] values()
for (EqualsMethod.TypePropertyComparator c : EqualsMethod.TypePropertyComparator.values()) System.out.println(c);
public static EqualsMethod.TypePropertyComparator 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 int compare(FieldDescription.InDefinedShape left, FieldDescription.InDefinedShape right)
compare
in interface java.util.Comparator<FieldDescription.InDefinedShape>
protected abstract boolean resolve(TypeDefinition typeDefinition)
typeDefinition
- The type to resolve the property for.true
if the type property is resolved.