Class EnumToString<E extends Enum<?>>

Type Parameters:
E - The enum type.
All Implemented Interfaces:
Converter<E,String>, Function<E,String>

public class EnumToString<E extends Enum<?>> extends AbstractNoArgsConverter<E,String>
Class that can convert any enum type to a string.

It is possible to specialize this class for a specific enum type.
This is not necessary as this class can convert any enum to a string.

Author:
Damien Carbonne
  • Field Details

  • Constructor Details

    • EnumToString

      protected EnumToString(Class<E> targetClass)
  • Method Details

    • apply

      public String apply(E source)