Class ParameterMatchesValueCriteria

  • All Implemented Interfaces:
    Criteria

    public class ParameterMatchesValueCriteria
    extends java.lang.Object
    implements Criteria
    Criteria that checks that a specific parameter is present and possess the desired value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String parameterName  
      private java.lang.String parameterValue  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterMatchesValueCriteria​(java.lang.String parameterName, java.lang.String parameterValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.util.Map<java.lang.String,​java.lang.String[]> parameters)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • parameterName

        private java.lang.String parameterName
      • parameterValue

        private java.lang.String parameterValue
    • Constructor Detail

      • ParameterMatchesValueCriteria

        public ParameterMatchesValueCriteria​(java.lang.String parameterName,
                                             java.lang.String parameterValue)
    • Method Detail

      • matches

        public boolean matches​(java.util.Map<java.lang.String,​java.lang.String[]> parameters)
        Specified by:
        matches in interface Criteria
        Returns:
        true if the criteria matches the input parameter map.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object