Class 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 Detail

      • UserFullNameComparator

        public UserFullNameComparator()
    • Method Detail

      • 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.