Class EntityEnumHelper
- java.lang.Object
-
- com.sportradar.livedata.sdk.common.classes.EntityEnumHelper
-
public class EntityEnumHelper extends Object
Helper class containing static helper methods forEntityEnum
class.- Author:
- uros.bregar
-
-
Constructor Summary
Constructors Constructor Description EntityEnumHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends EntityEnum>
TgetEnumMemberFromValue(T[] members, Object value)
Gets the enumeration member associated with the passedliteralValue
-
-
-
Method Detail
-
getEnumMemberFromValue
public static <T extends EntityEnum> T getEnumMemberFromValue(T[] members, Object value)
Gets the enumeration member associated with the passedliteralValue
- 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.
-
-