E
- The enum type associated with the control record.@FunctionalInterface
protected static interface LegacyEnum.NameLookupHelper<E extends LegacyEnum>
Modifier and Type | Method and Description |
---|---|
E |
lookup(LegacyEnum.EnumControlRecord<E> ecr,
java.lang.String name,
boolean trim)
Lookup a predefined enum by its name.
|
E lookup(LegacyEnum.EnumControlRecord<E> ecr, java.lang.String name, boolean trim)
ecr
- The control record.name
- Enum name.trim
- true
to force trimming the name before searching.null
if no match was found.