Class DecimalValueMappingValidator

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

public class DecimalValueMappingValidator extends Object implements MappingValidator
A MappingValidator which checks whether a value of the specific specifier has the required decimal part
  • 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