Class EnumRadioFetcher<T>

java.lang.Object
io.micronaut.views.fields.fetchers.EnumRadioFetcher<T>
Type Parameters:
T - Field type.
All Implemented Interfaces:
RadioFetcher<T>

@Singleton public class EnumRadioFetcher<T> extends Object implements RadioFetcher<T>
RadioFetcher implementation for Enums.
Since:
4.1.0
Author:
Sergio del Amo
  • Constructor Details

    • EnumRadioFetcher

      public EnumRadioFetcher()
  • Method Details

    • generate

      public List<Radio> generate(Class<T> type)
      Specified by:
      generate in interface RadioFetcher<T>
      Parameters:
      type - The Field Type
      Returns:
      A list of Radio buttons
    • generate

      public List<Radio> generate(T instance)
      Specified by:
      generate in interface RadioFetcher<T>
      Parameters:
      instance - The Field instance
      Returns:
      A list of Radio buttons