Package net.bmahe.genetics4j.gp
Class ImmutableInputSpec.Builder
java.lang.Object
net.bmahe.genetics4j.gp.ImmutableInputSpec.Builder
- Enclosing class:
ImmutableInputSpec
@Generated(from="InputSpec",
generator="Immutables")
public static final class ImmutableInputSpec.Builder
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTypes(Iterable<? extends Class> elements) Adds elements totypeslist.Adds one element totypeslist.Adds elements totypeslist.build()Builds a newInputSpec.Fill a builder with attribute values from the providedInputSpecinstance.Sets or replaces all elements fortypeslist.
-
Field Details
-
types
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedInputSpecinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTypes
Adds one element totypeslist.- Parameters:
element- A types element- Returns:
thisbuilder for use in a chained invocation
-
addTypes
Adds elements totypeslist.- Parameters:
elements- An array of types elements- Returns:
thisbuilder for use in a chained invocation
-
types
Sets or replaces all elements fortypeslist.- Parameters:
elements- An iterable of types elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTypes
Adds elements totypeslist.- Parameters:
elements- An iterable of types elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newInputSpec.- Returns:
- An immutable instance of InputSpec
- Throws:
IllegalStateException- if any required attributes are missing
-