Package nl.pim16aap2.util.reflection
Class EnumValuesFinder.NamedEnumValueFinder
java.lang.Object
nl.pim16aap2.util.reflection.ReflectionFinder<Object,EnumValuesFinder.NamedEnumValueFinder>
nl.pim16aap2.util.reflection.EnumValuesFinder.NamedEnumValueFinder
- Enclosing class:
EnumValuesFinder
public static final class EnumValuesFinder.NamedEnumValueFinder
extends ReflectionFinder<Object,EnumValuesFinder.NamedEnumValueFinder>
Represents an implementation of
ReflectionFinder to retrieve an enum value by its name.-
Nested Class Summary
Nested classes/interfaces inherited from class nl.pim16aap2.util.reflection.ReflectionFinder
ReflectionFinder.ReflectionFinderWithParameters<T,U extends ReflectionFinder.ReflectionFinderWithParameters<T, U>> -
Field Summary
Fields inherited from class nl.pim16aap2.util.reflection.ReflectionFinder
modifiers -
Method Summary
Methods inherited from class nl.pim16aap2.util.reflection.ReflectionFinder
addModifiers, withModifiers
-
Method Details
-
get
Retrieves the target reflection object(s) using the current configuration.This may throw an exception if the lookup hasn't been configured yet.
- Specified by:
getin classReflectionFinder<Object,EnumValuesFinder.NamedEnumValueFinder> - Returns:
- The target reflection object(s) being searched for.
- Throws:
IllegalArgumentException- When the source class is not an enum.
-
getNullable
Retrieves the target reflection object(s) using the current configuration.This may throw an exception if the lookup hasn't been configured yet.
- Specified by:
getNullablein classReflectionFinder<Object,EnumValuesFinder.NamedEnumValueFinder> - Returns:
- The target reflection object(s) being searched for or null if no object(s) could be found.
- Throws:
IllegalArgumentException- When the source class is not an enum.
-