Class DefaultPaginatedGenericDaoIntegrationTest.NameComparator

  • All Implemented Interfaces:
    java.util.Comparator<UserGroupModel>
    Enclosing class:
    DefaultPaginatedGenericDaoIntegrationTest

    public class DefaultPaginatedGenericDaoIntegrationTest.NameComparator
    extends java.lang.Object
    implements java.util.Comparator<UserGroupModel>
    UserGroupModel name attribute comparator using String.compareTo(String) which handles for null value. As name attribute is defined as optional from Principal item type, this comparator return 0 for either one of given userGroupModel has null name attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(UserGroupModel userGroup1, UserGroupModel userGroup2)  
      • 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

      • NameComparator

        public NameComparator()