Class EntityEnumHelper


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

      • EntityEnumHelper

        public EntityEnumHelper()
    • Method Detail

      • 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.