Interface ConfigurationElementFilter

All Superinterfaces:
Predicate<ConfigurationElement<?>>

public interface ConfigurationElementFilter extends Predicate<ConfigurationElement<?>>
Implementations of this interface test configuration elements for specific conditions.
  • Method Details

    • and

      Specified by:
      and in interface Predicate<ConfigurationElement<?>>
    • byType

      static ConfigurationElementFilter byType(Class<?> type)
      Creates a new ConfigurationElementFilter whose test method returns true if the tested configuration element is of the given type.
      Parameters:
      type - the type the filter is looking for
      Returns:
      new ConfigurationElementFilter that tests configuration elements for their type
      Throws:
      NullPointerException - if type is null
    • byPostProcessKey

      static ConfigurationElementFilter byPostProcessKey(String key)
      Creates a new ConfigurationElementFilter whose test method returns true if the tested configuration element is annotated with a PostProcess annotation whose key equals key.
      Parameters:
      key - the key of the PostProcess annotation the filter is looking for
      Returns:
      new ConfigurationElementFilter that tests configuration elements for PostProcess annotations with the given key
      Throws:
      NullPointerException - if key is null