Package com._1c.g5.v8.dt.common
Class Comparators
java.lang.Object
com._1c.g5.v8.dt.common.Comparators
Static utility methods pertaining to
Comparator instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Comparator<org.eclipse.core.runtime.IConfigurationElement>Returns aComparatorthat compareIConfigurationElementelements using"order"attribute and ascending order.static Comparator<org.eclipse.core.runtime.IConfigurationElement>Returns aComparatorthat compareIConfigurationElementelements using"priority"attribute and descending order. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<org.eclipse.core.runtime.IConfigurationElement>configComparator(String attribute, boolean order) Returns aComparatorthat compareIConfigurationElementelements using specifiedattributeandorder.static <T extends org.eclipse.emf.ecore.EObject>
Comparator<T>intFeatureComparator(org.eclipse.emf.ecore.EStructuralFeature feature) static <T extends org.eclipse.emf.ecore.EObject>
Comparator<T>strFeatureComparator(org.eclipse.emf.ecore.EStructuralFeature feature)
-
Field Details
-
PRIORITY
Returns aComparatorthat compareIConfigurationElementelements using"priority"attribute and descending order.Compared elements MUST to have the
"priority"attribute containing decimal number.- See Also:
-
ORDER
Returns aComparatorthat compareIConfigurationElementelements using"order"attribute and ascending order.Compared elements MUST to have the
"order"attribute containing decimal number.- See Also:
-
-
Constructor Details
-
Comparators
public Comparators()
-
-
Method Details
-
configComparator
public static Comparator<org.eclipse.core.runtime.IConfigurationElement> configComparator(String attribute, boolean order) Returns aComparatorthat compareIConfigurationElementelements using specifiedattributeandorder.Compared elements MUST to have the specified
attributecontaining decimal number.- Parameters:
attribute- - attribute of the IConfigurationElement elementorder- - ascending iftrue, descending otherwise- Returns:
- the Comparator of the
IConfigurationElementelements
-
intFeatureComparator
public static <T extends org.eclipse.emf.ecore.EObject> Comparator<T> intFeatureComparator(org.eclipse.emf.ecore.EStructuralFeature feature) -
strFeatureComparator
public static <T extends org.eclipse.emf.ecore.EObject> Comparator<T> strFeatureComparator(org.eclipse.emf.ecore.EStructuralFeature feature)
-