Class MetamodelHelper.EntityComparator

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

    public static class MetamodelHelper.EntityComparator
    extends java.lang.Object
    implements java.util.Comparator<jakarta.persistence.metamodel.EntityType<?>>
    Compares EntityType by their dependency of derived targets.
    Author:
    Pinaki Poddar
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(jakarta.persistence.metamodel.EntityType<?> o1, jakarta.persistence.metamodel.EntityType<?> o2)  
      • 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

      • EntityComparator

        public EntityComparator()
    • Method Detail

      • compare

        public int compare​(jakarta.persistence.metamodel.EntityType<?> o1,
                           jakarta.persistence.metamodel.EntityType<?> o2)
        Specified by:
        compare in interface java.util.Comparator<jakarta.persistence.metamodel.EntityType<?>>