public class PropertyValueComparator extends java.lang.Object implements java.util.Comparator<IPropertyValue>, java.io.Serializable
Comparator to compare IPropertyValues. This
Comparator compares the IPropertyValues based on the
ETypes of the corresponding Propertys. The following
ETypes are supported by this comparator: ETypes.STRING,
ETypes.NUMERIC, ETypes.BOOLEAN, ETypes.DATE,
ETypes.TIME.
If a not supported ETypes is used, a String compare is used.
See String.compareTo(String).
| Modifier and Type | Field and Description |
|---|---|
static PropertyValueComparator |
INSTANCE
The initialized instance.
|
| Constructor and Description |
|---|
PropertyValueComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(IPropertyValue pPropertyValue1,
IPropertyValue pPropertyValue2) |
public static final PropertyValueComparator INSTANCE
public int compare(IPropertyValue pPropertyValue1, IPropertyValue pPropertyValue2)
compare in interface java.util.Comparator<IPropertyValue>Copyright © 2015 Micro Focus GmbH. All rights reserved.