Interface ValuedEnumParser<T extends Enum>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValuedEnumParser<T extends Enum>
The interface for a valued enum parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an enum from it's string value.
  • Method Details

    • forValue

      @Nullable T forValue(@Nonnull String value)
      Gets an enum from it's string value.
      Parameters:
      value - the string value of the enum.
      Returns:
      the enum value derived from the string.