Package ch.raffael.meldioc.model
Class ConfigRef<T>
java.lang.Object
ch.raffael.meldioc.model.ConfigRef<T>
A reference to a configuration parameter.
TODO (2019-04-19) rename to ConfigParamRef
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ConfigRef.Builder<T>builder()abstract Stringstatic <T> ConfigRef<T>abstract Ttype()withConfigMethodName(String value) Copy the current immutable object by setting a value for theconfigMethodNameattribute.withTargetTypeArgument(T value) Copy the current immutable object by setting a value for thetargetTypeArgumentattribute.Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
builder
-
of
-
type
-
configMethodName
-
targetTypeArgument
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withConfigMethodName
Copy the current immutable object by setting a value for theconfigMethodNameattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for configMethodName- Returns:
- A modified copy of the
thisobject
-
withTargetTypeArgument
Copy the current immutable object by setting a value for thetargetTypeArgumentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetTypeArgument (can benull)- Returns:
- A modified copy of the
thisobject
-