Class AllOfMatcher

java.lang.Object
com.cloudbees.plugins.credentials.matchers.AllOfMatcher
All Implemented Interfaces:
CredentialsMatcher, CredentialsMatcher.CQL, Serializable

public class AllOfMatcher extends Object implements CredentialsMatcher, CredentialsMatcher.CQL
Matches all of the supplied matchers.
Since:
1.5
See Also:
  • Constructor Details

    • AllOfMatcher

      public AllOfMatcher(@CheckForNull List<CredentialsMatcher> matchers)
      Creates a new instance.
      Parameters:
      matchers - the matchers to match.
  • Method Details

    • matches

      public boolean matches(@NonNull Credentials item)
      Evaluates the matcher for the specified credentials.
      Specified by:
      matches in interface CredentialsMatcher
      Parameters:
      item - the specified credentials.
      Returns:
      true if and only if the specified credentials match.
    • describe

      @CheckForNull public String describe()
      Describes this matcher in terms of a java-bean style query language
      Specified by:
      describe in interface CredentialsMatcher.CQL
      Returns:
      the description of the credentials matcher query or null if the matcher cannot be expressed in CQL.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object