Class Param<T>
java.lang.Object
io.nosqlbench.nb.api.config.standard.Param<T>
- Type Parameters:
T- The type of value which can be stored in this named configuration parameter in in actual configuration data.
A configuration element describes a single configurable parameter.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLayer(String layer) static <V> Param<V> Parameters which are given a default value are automatically marked as required, as the default value allows them to be accessed as such.static <V> Param<V> Parameters which are given a default value are automatically marked as required, as the default value allows them to be accessed as such.static <V> Param<V> Parameters which are given a default value are automatically marked as required, as the default value allows them to be accessed as such.expand(NBConfigModelExpander expander) getNames()getRegex()Class<?> getType()booleanbooleanDeclare an optional String parameter with the given name.static <V> Param<V> Declare an optional parameter for the given name which must be assignable to (returnable as) the specified type.static <V> Param<V> Declare an optional parameter for the given name which must be assignable to (returnable as) the specified type.Declare an optional String parameter specified by any of the names.static <V> Param<V> Declare an optional parameter specified by any of the names which must be assignable to (returnable as) the specified type.static <V> Param<V> Declare an optional parameter specified by any of the names which must be assignable to (returnable as) the specified type.static <V> Param<V> static <V> Param<V> setDescription(String description) Param<?> setRequired(boolean required) toString()
-
Field Details
-
type
-
required
public boolean required
-
-
Constructor Details
-
Param
-
-
Method Details
-
optional
-
optional
Declare an optional String parameter specified by any of the names. They act as synonyms. When users provide more than one of these in configuration data, it is considered an error.- Parameters:
names- one or more names that the parameter can be specified with.
-
optional
Declare an optional parameter specified by any of the names which must be assignable to (returnable as) the specified type. When users provide more than one of these in configuration data, it is considered an error.- Type Parameters:
V- Generic type for inference.- Parameters:
names- one or more names that the parameter can be specified with.type- The type of value that the provided configuration value must be returnable as (assignable to)
-
optional
Declare an optional parameter specified by any of the names which must be assignable to (returnable as) the specified type. When users provide more than one of these in configuration data, it is considered an error.- Type Parameters:
V- Generic type for inference.- Parameters:
names- one or more names that the parameter can be specified with.type- The type of value that the provided configuration value must be returnable as (assignable to)description- A description of what this parameter is
-
optional
Declare an optional parameter for the given name which must be assignable to (returnable as) the specified type. When users provide more than one of these in configuration data, it is considered an error.- Type Parameters:
V- Generic type for inference.- Parameters:
name- the name of the parametertype- The type of value that the provided configuration value must be returnable as (assignable to)
-
optional
Declare an optional parameter for the given name which must be assignable to (returnable as) the specified type. When users provide more than one of these in configuration data, it is considered an error.- Type Parameters:
V- Generic type for inference.- Parameters:
name- the name of the parametertype- The type of value that the provided configuration value must be returnable as (assignable to)description- A description of what this parameter is
-
defaultTo
-
defaultTo
-
defaultTo
-
required
-
required
-
toString
-
getNames
-
getType
-
getDescription
-
isRequired
public boolean isRequired() -
setRequired
-
getDefaultValue
-
setDescription
-
setRegex
-
setRegex
-
getRegex
-
addLayer
-
getLayers
-
hasLayers
public boolean hasLayers() -
containsLayer
-
validate
-
getExpander
-
expand
-