public class FieldOrderings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldOrderings.FieldClassComparator |
static class |
FieldOrderings.FieldNameComparator |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<java.lang.reflect.Field> |
ALPHABETICAL_FIELD_THEN_SUB_BEST_FIRST
Puts fields in alpha order, but in cases of duplicate those lower down the hierarchy are first
|
static java.util.Comparator<java.lang.reflect.Field> |
ALPHABETICAL_FIELD_THEN_SUB_BEST_LAST
Puts fields in alpha order, but in cases of duplicate those higher up in the hierarchy are first
(potentially confusing, as this will put masked fields first)
|
static java.util.Comparator<java.lang.Class<?>> |
SUB_BEST_CLASS_COMPARATOR |
static java.util.Comparator<java.lang.reflect.Field> |
SUB_BEST_FIELD_FIRST_THEN_ALPHABETICAL
Puts fields that are lower down the hierarchy first, and then sorts those alphabetically
|
static java.util.Comparator<java.lang.reflect.Field> |
SUB_BEST_FIELD_FIST_THEN_DEFAULT
Puts fields lower in the hierarchy first, and otherwise leaves fields in order
|
static java.util.Comparator<java.lang.reflect.Field> |
SUB_BEST_FIELD_LAST_THEN_ALPHABETICAL
Puts fields that are higher up in the hierarchy first, and then sorts those alphabetically
|
static java.util.Comparator<java.lang.reflect.Field> |
SUB_BEST_FIELD_LAST_THEN_DEFAULT
Puts fields higher in the hierarchy first, and otherwise leaves fields in order
|
Constructor and Description |
---|
FieldOrderings() |
public static java.util.Comparator<java.lang.Class<?>> SUB_BEST_CLASS_COMPARATOR
public static java.util.Comparator<java.lang.reflect.Field> SUB_BEST_FIELD_FIST_THEN_DEFAULT
public static java.util.Comparator<java.lang.reflect.Field> SUB_BEST_FIELD_LAST_THEN_DEFAULT
public static java.util.Comparator<java.lang.reflect.Field> SUB_BEST_FIELD_FIRST_THEN_ALPHABETICAL
public static java.util.Comparator<java.lang.reflect.Field> SUB_BEST_FIELD_LAST_THEN_ALPHABETICAL
public static java.util.Comparator<java.lang.reflect.Field> ALPHABETICAL_FIELD_THEN_SUB_BEST_FIRST
public static java.util.Comparator<java.lang.reflect.Field> ALPHABETICAL_FIELD_THEN_SUB_BEST_LAST