Class PropertySortUtils
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.PropertySortUtils
-
public class PropertySortUtils extends Object
Utility class containing the declaration of the default property sort algorithm and its components.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<MemberScope<?,?>>
DEFAULT_PROPERTY_ORDER
Comparator
sorting properties into the following groups and within each group alphabetically by their name.static Comparator<MemberScope<?,?>>
SORT_PROPERTIES_BY_NAME_ALPHABETICALLY
Comparator
sorting properties: alphabetically by their name.static Comparator<MemberScope<?,?>>
SORT_PROPERTIES_FIELDS_BEFORE_METHODS
Comparator
sorting properties: with fields before methods.
-
Constructor Summary
Constructors Constructor Description PropertySortUtils()
-
-
-
Field Detail
-
SORT_PROPERTIES_FIELDS_BEFORE_METHODS
public static final Comparator<MemberScope<?,?>> SORT_PROPERTIES_FIELDS_BEFORE_METHODS
Comparator
sorting properties: with fields before methods.
-
SORT_PROPERTIES_BY_NAME_ALPHABETICALLY
public static final Comparator<MemberScope<?,?>> SORT_PROPERTIES_BY_NAME_ALPHABETICALLY
Comparator
sorting properties: alphabetically by their name.- See Also:
MemberScope.getSchemaPropertyName()
-
DEFAULT_PROPERTY_ORDER
public static final Comparator<MemberScope<?,?>> DEFAULT_PROPERTY_ORDER
Comparator
sorting properties into the following groups and within each group alphabetically by their name.- instance fields
- instance methods
- static fields
- static methods
- See Also:
MemberScope.getSchemaPropertyName()
-
-