Class MetamodelHelper.AttributeComparator

  • All Implemented Interfaces:
    java.util.Comparator<jakarta.persistence.metamodel.Attribute<?,​?>>
    Enclosing class:
    MetamodelHelper

    public static class MetamodelHelper.AttributeComparator
    extends java.lang.Object
    implements java.util.Comparator<jakarta.persistence.metamodel.Attribute<?,​?>>
    Compares attribute by their qualification. Identity Version Basic Singular association Plural association
    Author:
    Pinaki Poddar
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int 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 Detail

      • AttributeComparator

        public AttributeComparator()
    • Method Detail

      • compare

        public int compare​(jakarta.persistence.metamodel.Attribute<?,​?> a1,
                           jakarta.persistence.metamodel.Attribute<?,​?> a2)
        Specified by:
        compare in interface java.util.Comparator<jakarta.persistence.metamodel.Attribute<?,​?>>