java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.NamedValueCi

public class NamedValueCi extends Object
A simple key-value representation used by the caching components
  • Constructor Details

    • NamedValueCi

      public NamedValueCi(int id, String description)
      Initializes a new instance of the NamedValueCi
      Parameters:
      id - - the identifier
      description - - 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

      public String getDescription()
      The description of the current instance
      Returns:
      - the description of the current instance
    • mapToNamedValuesCi

      public static <T> List<NamedValueCi> mapToNamedValuesCi(T fetch)
      Maps a fetched schema object to a new NamedValueCi
      Type Parameters:
      T - - the type of the fetched schema object
      Parameters:
      fetch - - the fetched schema object
      Returns:
      - a List of mapped objects