Class TestClass.FieldComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.reflect.Field>
    Enclosing class:
    TestClass

    private static class TestClass.FieldComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.reflect.Field>
    Compares two fields by its name.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FieldComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.reflect.Field left, java.lang.reflect.Field right)  
      • 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

      • FieldComparator

        private FieldComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.reflect.Field left,
                           java.lang.reflect.Field right)
        Specified by:
        compare in interface java.util.Comparator<java.lang.reflect.Field>