Class SpecificValueMappingValidator

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.markets.mappings.SpecificValueMappingValidator
All Implemented Interfaces:
MappingValidator

public class SpecificValueMappingValidator extends Object implements MappingValidator
A MappingValidator which checks the value of the specifier against a specific value
  • Method Details

    • validate

      public boolean validate(Map<String,String> specifiers)
      Determines whether a specific mapping can be used to map market with provided specifiers
      Specified by:
      validate in interface MappingValidator
      Parameters:
      specifiers - A Map containing market specifiers
      Returns:
      True if the associated market can be mapped with associated mapping; Otherwise false.
    • toString

      public String toString()
      Constructs and returns a string representation of the current instance
      Overrides:
      toString in class Object
      Returns:
      A string representation of the current instance