public static class PropertySorter.DefaultPropertySorter extends Object implements PropertySorter
comparator
to determine whether the properties should be
sorted and the sort order.
Note: In most cases the comparator
will impose orderings consistent with equals which is
acceptable usage for this sorterPropertySorter.DefaultPropertySorter
NO_OP
Constructor and Description |
---|
DefaultPropertySorter(Comparator<String> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReorderRequired(org.jboss.logmanager.config.PropertyConfigurable configurable)
Checks the properties and returns
true if the properties should be sorted by invoking PropertySorter.sort(org.jboss.logmanager.config.PropertyConfigurable) , otherwise false . |
void |
sort(org.jboss.logmanager.config.PropertyConfigurable configurable)
Sorts the properties.
|
public DefaultPropertySorter(Comparator<String> comparator)
public boolean isReorderRequired(org.jboss.logmanager.config.PropertyConfigurable configurable)
PropertySorter
true
if the properties should be sorted by invoking PropertySorter.sort(org.jboss.logmanager.config.PropertyConfigurable)
, otherwise false
.isReorderRequired
in interface PropertySorter
configurable
- the configurable to checktrue
if the properties should be sorted, otherwise false
public void sort(org.jboss.logmanager.config.PropertyConfigurable configurable)
PropertySorter
sort
in interface PropertySorter
configurable
- the configurable to sort the properties onCopyright © 2023 JBoss by Red Hat. All rights reserved.