Class EntityEnumHelper

java.lang.Object
com.sportradar.livedata.sdk.common.classes.EntityEnumHelper

public class EntityEnumHelper extends Object
Helper class containing static helper methods for EntityEnum class.
Author:
uros.bregar
  • Constructor Details

    • EntityEnumHelper

      public EntityEnumHelper()
  • Method Details

    • getEnumMemberFromValue

      public static <T extends EntityEnum> T getEnumMemberFromValue(T[] members, Object value)
      Gets the enumeration member associated with the passed literalValue
      Type Parameters:
      T - The type of the enum
      Parameters:
      members - The members of the target enumeration.
      value - The value to be compared with the value associated with the members
      Returns:
      The member of the target enum or a null reference.