Class NamedValueCi
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.NamedValueCi
A simple key-value representation used by the caching components
-
Constructor Summary
ConstructorsConstructorDescriptionNamedValueCi(int id, String description) Initializes a new instance of theNamedValueCi -
Method Summary
Modifier and TypeMethodDescriptionThe description of the current instanceintgetId()The id of the current instancestatic <T> List<NamedValueCi>mapToNamedValuesCi(T fetch) Maps a fetched schema object to a newNamedValueCi
-
Constructor Details
-
NamedValueCi
Initializes a new instance of theNamedValueCi- Parameters:
id- - the identifierdescription- - the description of the instance
-
-
Method Details
-
getId
public int getId()The id of the current instance- Returns:
- - the id of the current instance
-
getDescription
The description of the current instance- Returns:
- - the description of the current instance
-
mapToNamedValuesCi
Maps a fetched schema object to a newNamedValueCi- Type Parameters:
T- - the type of the fetched schema object- Parameters:
fetch- - the fetched schema object- Returns:
- - a
Listof mapped objects
-