Class DescriptorComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.beans.FeatureDescriptor>

    public class DescriptorComparator
    extends java.lang.Object
    implements java.util.Comparator<java.beans.FeatureDescriptor>
    Comparator used to compare java.beans.FeatureDescriptor objects. Looks for an Integer-valued attribute nameb DefaultBeanInfo.DISPLAY_ORDER_KEY for ordering (ascending), otherwise reverts to the strings returned from getDisplayName are used in the comparison.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.beans.FeatureDescriptor f1, java.beans.FeatureDescriptor f2)
      Compares two FeatureDescriptor objects
      • 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

      • DescriptorComparator

        public DescriptorComparator()
    • Method Detail

      • compare

        public int compare​(java.beans.FeatureDescriptor f1,
                           java.beans.FeatureDescriptor f2)
        Compares two FeatureDescriptor objects
        Specified by:
        compare in interface java.util.Comparator<java.beans.FeatureDescriptor>