Class MetamodelHelper.AttributeComparator
java.lang.Object
org.apache.openjpa.persistence.jest.MetamodelHelper.AttributeComparator
- All Implemented Interfaces:
Comparator<jakarta.persistence.metamodel.Attribute<?,
?>>
- Enclosing class:
- MetamodelHelper
public static class MetamodelHelper.AttributeComparator
extends Object
implements Comparator<jakarta.persistence.metamodel.Attribute<?,?>>
Compares attribute by their category and within the same category by name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(jakarta.persistence.metamodel.Attribute<?, ?> a1, jakarta.persistence.metamodel.Attribute<?, ?> a2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AttributeComparator
public AttributeComparator()
-
-
Method Details
-
compare
public int compare(jakarta.persistence.metamodel.Attribute<?, ?> a1, jakarta.persistence.metamodel.Attribute<?, ?> a2) - Specified by:
compare
in interfaceComparator<jakarta.persistence.metamodel.Attribute<?,
?>>
-