Class UserFullNameComparator

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

public final class UserFullNameComparator extends Object implements Comparator<IUser>
Compare IUser objects by their display name. null values have high precedence. By default names are built with title but without commas.
  • Constructor Details

    • UserFullNameComparator

      public UserFullNameComparator()
  • 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.
    • setWithTitle

      public void setWithTitle(boolean p_bWithTitle)
      Parameters:
      p_bWithTitle - true if names should be built with title, or false otherwise.
    • setWithComma

      public void setWithComma(boolean p_bWithComma)
      Parameters:
      p_bWithComma - true if names should be built with commas, or false otherwise.