Class EnumValuesFinder.IndexedEnumValueFinder
java.lang.Object
nl.pim16aap2.util.reflection.ReflectionFinder<Object, EnumValuesFinder.IndexedEnumValueFinder>
nl.pim16aap2.util.reflection.EnumValuesFinder.IndexedEnumValueFinder
- Enclosing class:
EnumValuesFinder
public static final class EnumValuesFinder.IndexedEnumValueFinder
extends ReflectionFinder<Object, EnumValuesFinder.IndexedEnumValueFinder>
Represents an implementation of
ReflectionFinder to retrieve an enum value by its index.-
Nested Class Summary
Nested classes/interfaces inherited from class ReflectionFinder
ReflectionFinder.ReflectionFinderWithParameters<T,U> -
Field Summary
Fields inherited from class ReflectionFinder
modifiers -
Method Summary
Methods inherited from class 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.IndexedEnumValueFinder>- 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.IndexedEnumValueFinder>- 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.
-