Class UserLastNameFirstNameComparator

java.lang.Object
de.uplanet.lucy.server.auxiliaries.comparator.UserLastNameFirstNameComparator
All Implemented Interfaces:
Comparator<IUser>

public final class UserLastNameFirstNameComparator extends Object implements Comparator<IUser>
Compare IUser objects by last name and then by surname. null values have high precedence.
  • Constructor Details

    • UserLastNameFirstNameComparator

      public UserLastNameFirstNameComparator()
  • Method Details

    • compare

      public int compare(IUser p_obj1, IUser p_obj2)
      Specified by:
      compare in interface Comparator<IUser>
    • setAscending

      public void setAscending(boolean p_bAscending)
      Set this comparator to ascending or descending sort order.
      Parameters:
      p_bAscending - true if ascending sort order should be used, or false otherwise.