Class CredentialsNameComparator

java.lang.Object
com.cloudbees.plugins.credentials.CredentialsNameComparator
All Implemented Interfaces:
Serializable, Comparator<Credentials>

public class CredentialsNameComparator extends Object implements Comparator<Credentials>, Serializable
Comparator to alphabetically sort credentials drop down list in ascending order by Credential Name.
Since:
1.28
See Also:
  • Constructor Details

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