Possibly incorrect types in EnumSelectorBuilder and EnumListEntry
BerdinskiyBear opened this issue ยท 0 comments
While using EnumSelectorBuilder I have found that I cannot use a very sensible function like
public static Text nameProvider(MyEnum value) ...via method reference as an argument for the method setEnumNameProvider in EnumSelectorBuilder.
Argument of setEnumNameProvider (here) and field enumNameProvider(here) in EnumSelectorBuilder as well as parameters enumNameProvider of constructors of EnumListEntry (here, here and here) have the type Function<Enum, Text> but it seems that they all should have the type Function<T, Text> (T in both classes is defined as T extends Enum<?>).