Package jnr.ffi.util

Class AnnotationNameComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.annotation.Annotation>

    final class AnnotationNameComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.annotation.Annotation>
    Sorts annotations according to name
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.Comparator<java.lang.annotation.Annotation> INSTANCE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.annotation.Annotation o1, java.lang.annotation.Annotation o2)  
      boolean equals​(java.lang.Object other)  
      static java.util.Comparator<java.lang.annotation.Annotation> getInstance()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • INSTANCE

        static final java.util.Comparator<java.lang.annotation.Annotation> INSTANCE
    • Constructor Detail

      • AnnotationNameComparator

        AnnotationNameComparator()
    • Method Detail

      • getInstance

        public static java.util.Comparator<java.lang.annotation.Annotation> getInstance()
      • compare

        public int compare​(java.lang.annotation.Annotation o1,
                           java.lang.annotation.Annotation o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.annotation.Annotation>
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.util.Comparator<java.lang.annotation.Annotation>
        Overrides:
        equals in class java.lang.Object