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