Class FieldComparators


  • public class FieldComparators
    extends Object
    An internal holder of the comparators for fields described with FieldLocation.
    • Constructor Detail

      • FieldComparators

        public FieldComparators()
    • Method Detail

      • registerComparator

        public void registerComparator​(FieldLocation fieldLocation,
                                       Comparator<?> comparator)
        Puts the comparator for the given clazz.
        Parameters:
        fieldLocation - the FieldLocation where to apply the comparator
        comparator - the comparator it self
      • isEmpty

        public boolean isEmpty()
        Returns:
        true is there are registered comparators, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • hasComparatorForField

        public boolean hasComparatorForField​(FieldLocation fieldLocation)