Class NamedValueImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.NamedValueImpl
- All Implemented Interfaces:
NamedValue
- Direct Known Subclasses:
LocalizedNamedValueImpl
An implementation of the
NamedValue-
Constructor Summary
ConstructorsConstructorDescriptionNamedValueImpl(int id) Initializes a new instance ofNamedValueImplNamedValueImpl(int id, String description) Initializes a new instance ofNamedValueImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the current instanceintgetId()Returns the identifier of the current instance
-
Constructor Details
-
NamedValueImpl
public NamedValueImpl(int id) Initializes a new instance ofNamedValueImpl- Parameters:
id- - the identifier
-
NamedValueImpl
Initializes a new instance ofNamedValueImpl- Parameters:
id- - the identifierdescription- - aStringdescribing the new instance
-
-
Method Details
-
getId
public int getId()Returns the identifier of the current instance- Specified by:
getIdin interfaceNamedValue- Returns:
- - the identifier of the current instance
-
getDescription
Returns the description of the current instance- Specified by:
getDescriptionin interfaceNamedValue- Returns:
- - the description of the current instance
-