Class LocalizedNamedValueImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.NamedValueImpl
com.sportradar.unifiedodds.sdk.internal.impl.entities.LocalizedNamedValueImpl
All Implemented Interfaces:
LocalizedNamedValue, NamedValue

public class LocalizedNamedValueImpl extends NamedValueImpl implements LocalizedNamedValue
An implementation of the LocalizedNamedValue
  • Constructor Details

  • Method Details

    • getDescription

      public String getDescription()
      Returns the current instance description in the default Locale
      Specified by:
      getDescription in interface NamedValue
      Overrides:
      getDescription in class NamedValueImpl
      Returns:
      - the current instance description if available; otherwise null
    • getDescription

      public String getDescription(Locale locale)
      Returns the current instance description in the requested Locale
      Specified by:
      getDescription in interface LocalizedNamedValue
      Parameters:
      locale - - the Locale in which the description should be provided
      Returns:
      - the current instance description in the requested Locale if available; otherwise null