Class NamedValueCacheImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.impl.NamedValueCacheImpl
All Implemented Interfaces:
NamedValueCache

public class NamedValueCacheImpl extends Object implements NamedValueCache
The default implementation of the NamedValueCache used to cache NamedValue objects
  • Constructor Details

  • Method Details

    • getNamedValue

      public NamedValue getNamedValue(int id)
      Gets the NamedValue specified by the provided id
      Specified by:
      getNamedValue in interface NamedValueCache
      Parameters:
      id - - the id of the NamedValue to retrieve.
      Returns:
      - the NamedValue specified by the provided id
    • isValueDefined

      public boolean isValueDefined(int id)
      Determines if the specified id exists in the current cache instance
      Specified by:
      isValueDefined in interface NamedValueCache
      Parameters:
      id - - the id that should be checked
      Returns:
      true if the value is defined; otherwise false