Class EnumOptionFetcher<T>
java.lang.Object
io.micronaut.views.fields.fetchers.EnumOptionFetcher<T>
- Type Parameters:
T
- the field type
- All Implemented Interfaces:
OptionFetcher<T>
OptionFetcher
implementation for Enums.- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EnumOptionFetcher
public EnumOptionFetcher()
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceOptionFetcher<T>
- Parameters:
type
- The Field Type- Returns:
- A list of options
-
generate
- Specified by:
generate
in interfaceOptionFetcher<T>
- Parameters:
instance
- The Field instance- Returns:
- A list of options
-