Module io.inverno.mod.configuration
Package io.inverno.mod.configuration
Class AbstractHashConfigurationSource.HashListConfigurationQuery<A,B extends AbstractHashConfigurationSource<A,B>>
java.lang.Object
io.inverno.mod.configuration.AbstractHashConfigurationSource.HashListConfigurationQuery<A,B>
- Type Parameters:
A
- raw configuration value typeB
- the hash configuration source type
- All Implemented Interfaces:
ListConfigurationQuery<AbstractHashConfigurationSource.HashListConfigurationQuery<A,
B>>
- Enclosing class:
AbstractHashConfigurationSource<A,
B extends AbstractHashConfigurationSource<A, B>>
public static class AbstractHashConfigurationSource.HashListConfigurationQuery<A,B extends AbstractHashConfigurationSource<A,B>>
extends Object
implements ListConfigurationQuery<AbstractHashConfigurationSource.HashListConfigurationQuery<A,B>>
The list configuration query used by a hash configuration source.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Lists all properties with the specified property name and whose parameters exactly match the query.Lists all properties with the specified property name and whose parameters match the query.withParameters
(List<ConfigurationKey.Parameter> parameters) Defines parameters that specify the context in which configuration properties are to be retrieved.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.configuration.ListConfigurationQuery
withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters
-
Method Details
-
withParameters
public AbstractHashConfigurationSource.HashListConfigurationQuery<A,B> withParameters(List<ConfigurationKey.Parameter> parameters) throws IllegalArgumentException Description copied from interface:ListConfigurationQuery
Defines parameters that specify the context in which configuration properties are to be retrieved.
- Specified by:
withParameters
in interfaceListConfigurationQuery<A>
- Parameters:
parameters
- a list of parameters- Returns:
- the configuration query
- Throws:
IllegalArgumentException
- if parameters were specified more than once
-
execute
Description copied from interface:ListConfigurationQuery
Lists all properties with the specified property name and whose parameters exactly match the query.
This method returns properties whose parameters exactly match the parameters specified in the query and exclude those defined with extra parameters.
- Specified by:
execute
in interfaceListConfigurationQuery<A>
- Returns:
- a stream of configuration properties
-
executeAll
Description copied from interface:ListConfigurationQuery
Lists all properties with the specified property name and whose parameters match the query.
This method returns all properties whose parameters match the parameters specified in the query without excluding those defined with extra parameters.
- Specified by:
executeAll
in interfaceListConfigurationQuery<A>
- Returns:
- a stream of configuration properties
-