Package de.exlll.configlib
Interface ConfigurationElementFilter
- All Superinterfaces:
Predicate<ConfigurationElement<?>>
Implementations of this interface test configuration elements for specific
conditions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConfigurationElementFilterand(Predicate<? super ConfigurationElement<?>> other) static ConfigurationElementFilterbyPostProcessKey(String key) Creates a newConfigurationElementFilterwhosetestmethod returnstrueif the tested configuration element is annotated with aPostProcessannotation whose key equalskey.static ConfigurationElementFilterCreates a newConfigurationElementFilterwhosetestmethod returnstrueif the tested configuration element is of the given type.
-
Method Details
-
and
- Specified by:
andin interfacePredicate<ConfigurationElement<?>>
-
byType
Creates a newConfigurationElementFilterwhosetestmethod returnstrueif the tested configuration element is of the given type.- Parameters:
type- the type the filter is looking for- Returns:
- new
ConfigurationElementFilterthat tests configuration elements for their type - Throws:
NullPointerException- iftypeis null
-
byPostProcessKey
Creates a newConfigurationElementFilterwhosetestmethod returnstrueif the tested configuration element is annotated with aPostProcessannotation whose key equalskey.- Parameters:
key- the key of thePostProcessannotation the filter is looking for- Returns:
- new
ConfigurationElementFilterthat tests configuration elements forPostProcessannotations with the given key - Throws:
NullPointerException- ifkeyis null
-