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.DefaultPropertySorterNO_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)
PropertySortertrue if the properties should be sorted by invoking PropertySorter.sort(org.jboss.logmanager.config.PropertyConfigurable), otherwise false.isReorderRequired in interface PropertySorterconfigurable - the configurable to checktrue if the properties should be sorted, otherwise falsepublic void sort(org.jboss.logmanager.config.PropertyConfigurable configurable)
PropertySortersort in interface PropertySorterconfigurable - the configurable to sort the properties onCopyright © 2014 JBoss by Red Hat. All rights reserved.