Class CredentialsNameComparator

    • Constructor Detail

      • CredentialsNameComparator

        public CredentialsNameComparator()
        Creates a new instance that case insensitively sorts names using the the web request locale (if invoked from a web request handling thread) or the default locale (if invoked outside of a web request thread.
      • CredentialsNameComparator

        public CredentialsNameComparator​(@CheckForNull
                                         Locale locale)
        Creates a new instance that case insensitively sorts names using the specified locale.
        Parameters:
        locale - the locale to use or null to use the web request locale (if invoked from a web request handling thread) or the default locale (if invoked outside of a web request thread.
      • CredentialsNameComparator

        public CredentialsNameComparator​(@CheckForNull
                                         Locale locale,
                                         boolean ignoreCase)
        Creates a new instance that sorts names using the specified locale.
        Parameters:
        locale - the locale to use or null to use the web request locale (if invoked from a web request handling thread) or the default locale (if invoked outside of a web request thread.
        ignoreCase - if true then the names will be compared ignoring case.