java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.NamedValueImpl
All Implemented Interfaces:
NamedValue
Direct Known Subclasses:
LocalizedNamedValueImpl

public class NamedValueImpl extends Object implements NamedValue
An implementation of the NamedValue
  • Constructor Details

    • NamedValueImpl

      public NamedValueImpl(int id)
      Initializes a new instance of NamedValueImpl
      Parameters:
      id - - the identifier
    • NamedValueImpl

      public NamedValueImpl(int id, String description)
      Initializes a new instance of NamedValueImpl
      Parameters:
      id - - the identifier
      description - - a String describing the new instance
  • Method Details

    • getId

      public int getId()
      Returns the identifier of the current instance
      Specified by:
      getId in interface NamedValue
      Returns:
      - the identifier of the current instance
    • getDescription

      public String getDescription()
      Returns the description of the current instance
      Specified by:
      getDescription in interface NamedValue
      Returns:
      - the description of the current instance