Interface OptionFetcher<T>

Type Parameters:
T - The field type. E.g. a Long or String.
All Known Implementing Classes:
EnumOptionFetcher

public interface OptionFetcher<T>
Defines an Option Fetcher API.
Since:
4.1.0
Author:
Sergio del Amo
  • Method Details

    • generate

      List<Option> generate(@NonNull @NonNull Class<T> type)
      Parameters:
      type - The Field Type
      Returns:
      A list of options
    • generate

      List<Option> generate(@NonNull T instance)
      Parameters:
      instance - The Field instance
      Returns:
      A list of options