C - the type of configurationB - the type of builderpublic static interface Configuration.ConfigBuilder<C extends Configuration,B extends Configuration.ConfigBuilder<C,B>>
| Modifier and Type | Method and Description |
|---|---|
B |
apply(Consumer<B> function)
Apply the function to this builder.
|
C |
build()
Build and return the immutable configuration.
|
default B |
changeBoolean(Field field,
Function<Boolean,Boolean> function)
Apply the function to this builder to change a potentially existing boolean field.
|
default B |
changeBoolean(String key,
Function<Boolean,Boolean> function)
Apply the function to this builder to change a potentially existing boolean field.
|
default B |
changeDouble(Field field,
Function<Double,Double> function)
Apply the function to this builder to change a potentially existing double field.
|
default B |
changeDouble(String key,
Function<Double,Double> function)
Apply the function to this builder to change a potentially existing double field.
|
default B |
changeFloat(Field field,
Function<Float,Float> function)
Apply the function to this builder to change a potentially existing float field.
|
default B |
changeFloat(String key,
Function<Float,Float> function)
Apply the function to this builder to change a potentially existing float field.
|
default B |
changeInteger(Field field,
Function<Integer,Integer> function)
Apply the function to this builder to change a potentially existing integer field.
|
default B |
changeInteger(String key,
Function<Integer,Integer> function)
Apply the function to this builder to change a potentially existing integer field.
|
default B |
changeLong(Field field,
Function<Long,Long> function)
Apply the function to this builder to change a potentially existing long field.
|
default B |
changeLong(String key,
Function<Long,Long> function)
Apply the function to this builder to change a potentially existing long field.
|
B |
changeString(Field field,
Function<String,String> function)
Apply the function to this builder to change a potentially existing string field.
|
B |
changeString(String key,
Function<String,String> function)
Apply the function to this builder to change a potentially existing string field.
|
default B |
with(Configuration other)
Add all of the fields in the supplied Configuration object.
|
default B |
with(Field field,
boolean value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
Class<?> value)
Associate the given class name value with the specified field.
|
default B |
with(Field field,
double value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
EnumeratedValue value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
float value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
int value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
long value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
Object value)
Associate the given value with the key of the specified field.
|
default B |
with(Field field,
String value)
Associate the given value with the key of the specified field.
|
default B |
with(String key,
boolean value)
Associate the given value with the specified key.
|
default B |
with(String key,
Class<?> value)
Associate the given class name value with the specified key.
|
default B |
with(String key,
double value)
Associate the given value with the specified key.
|
default B |
with(String key,
EnumeratedValue value)
Associate the given value with the specified key.
|
default B |
with(String key,
float value)
Associate the given value with the specified key.
|
default B |
with(String key,
int value)
Associate the given value with the specified key.
|
default B |
with(String key,
long value)
Associate the given value with the specified key.
|
default B |
with(String key,
Object value)
Associate the given value with the specified key.
|
B |
with(String key,
String value)
Associate the given value with the specified key.
|
default B |
withDefault(Configuration other)
If any of the fields in the supplied Configuration object do not exist, then add them.
|
default B |
withDefault(Field field,
boolean value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
Class<?> value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
double value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
float value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
int value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
long value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
Object value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(Field field,
String value)
If the field does not have a value, then associate the given value with the key of the specified field.
|
default B |
withDefault(String key,
boolean value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
Class<?> value)
If there is no field with the specified key, then associate the given class name value with the specified key.
|
default B |
withDefault(String key,
double value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
EnumeratedValue value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
float value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
int value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
long value)
If there is no field with the specified key, then associate the given value with the specified key.
|
default B |
withDefault(String key,
Object value)
If there is no field with the specified key, then associate the given value with the specified key.
|
B |
withDefault(String key,
String value)
If there is no field with the specified key, then associate the given value with the specified key.
|
B with(String key, String value)
key - the keyvalue - the valuedefault B with(String key, Object value)
key - the keyvalue - the valuedefault B with(String key, EnumeratedValue value)
key - the keyvalue - the valuedefault B with(String key, int value)
key - the keyvalue - the valuedefault B with(String key, float value)
key - the keyvalue - the valuedefault B with(String key, double value)
key - the keyvalue - the valuedefault B with(String key, long value)
key - the keyvalue - the valuedefault B with(String key, boolean value)
key - the keyvalue - the valuedefault B with(String key, Class<?> value)
key - the keyvalue - the Class valueB withDefault(String key, String value)
key - the keyvalue - the valuedefault B withDefault(String key, Object value)
key - the keyvalue - the valuedefault B withDefault(String key, EnumeratedValue value)
key - the keyvalue - the valuedefault B withDefault(String key, int value)
key - the keyvalue - the valuedefault B withDefault(String key, float value)
key - the keyvalue - the valuedefault B withDefault(String key, double value)
key - the keyvalue - the valuedefault B withDefault(String key, long value)
key - the keyvalue - the valuedefault B withDefault(String key, boolean value)
key - the keyvalue - the valuedefault B withDefault(String key, Class<?> value)
key - the keyvalue - the Class valuedefault B withDefault(Configuration other)
other - the configuration whose fields should be added; may not be nulldefault B with(Configuration other)
other - the configuration whose fields should be added; may not be nulldefault B with(Field field, String value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, Object value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, EnumeratedValue value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, int value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, float value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, double value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, long value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, boolean value)
field - the predefined field for the keyvalue - the valuedefault B with(Field field, Class<?> value)
field - the predefined field for the keyvalue - the Class valuedefault B withDefault(Field field, String value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, Object value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, int value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, float value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, double value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, long value)
field - the predefined field for the keyvalue - the valuedefault B withDefault(Field field, boolean value)
field - the predefined field for the keyvalue - the default valuedefault B withDefault(Field field, Class<?> value)
field - the predefined field for the keyvalue - the default valueB apply(Consumer<B> function)
function - the predefined field for the keydefault B changeBoolean(String key, Function<Boolean,Boolean> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullNumberFormatException - if the existing value is not a booleanB changeString(String key, Function<String,String> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nulldefault B changeDouble(String key, Function<Double,Double> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullNumberFormatException - if the existing value is not a doubledefault B changeFloat(String key, Function<Float,Float> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullNumberFormatException - if the existing value is not a floatdefault B changeLong(String key, Function<Long,Long> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullNumberFormatException - if the existing value is not a longdefault B changeInteger(String key, Function<Integer,Integer> function)
key - the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullNumberFormatException - if the existing value is not an integerdefault B changeBoolean(Field field, Function<Boolean,Boolean> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullB changeString(Field field, Function<String,String> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nulldefault B changeDouble(Field field, Function<Double,Double> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nulldefault B changeFloat(Field field, Function<Float,Float> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nulldefault B changeLong(Field field, Function<Long,Long> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nulldefault B changeInteger(Field field, Function<Integer,Integer> function)
field - the predefined field for the keyfunction - the function that computes the new value given a possibly-existing value; may not be nullC build()
Copyright © 2018 JBoss by Red Hat. All rights reserved.