Package net.bmahe.genetics4j.gpu.spec
Class ImmutableProgram.Builder
java.lang.Object
net.bmahe.genetics4j.gpu.spec.ImmutableProgram.Builder
- Enclosing class:
ImmutableProgram
@Generated(from="Program",
generator="Immutables")
public static final class ImmutableProgram.Builder
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ImmutableProgram.BuilderaddAllContent(Iterable<String> elements) Adds elements tocontentlist.final ImmutableProgram.BuilderaddAllKernelNames(Iterable<String> elements) Adds elements tokernelNamesset.final ImmutableProgram.BuilderaddAllResources(Iterable<String> elements) Adds elements toresourcesset.final ImmutableProgram.BuilderaddContent(String element) Adds one element tocontentlist.final ImmutableProgram.BuilderaddContent(String... elements) Adds elements tocontentlist.final ImmutableProgram.BuilderaddKernelNames(String element) Adds one element tokernelNamesset.final ImmutableProgram.BuilderaddKernelNames(String... elements) Adds elements tokernelNamesset.final ImmutableProgram.BuilderaddResources(String element) Adds one element toresourcesset.final ImmutableProgram.BuilderaddResources(String... elements) Adds elements toresourcesset.build()Builds a newProgram.final ImmutableProgram.BuilderbuildOptions(String buildOptions) Initializes the optional valuebuildOptionsto buildOptions.final ImmutableProgram.BuilderbuildOptions(Optional<String> buildOptions) Initializes the optional valuebuildOptionsto buildOptions.final ImmutableProgram.BuilderSets or replaces all elements forcontentlist.final ImmutableProgram.BuilderFill a builder with attribute values from the providedPrograminstance.final ImmutableProgram.BuilderkernelNames(Iterable<String> elements) Sets or replaces all elements forkernelNamesset.final ImmutableProgram.BuilderSets or replaces all elements forresourcesset.
-
Field Details
-
-
resources
-
kernelNames
-
buildOptions
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedPrograminstance. 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
-
addContent
Adds one element tocontentlist.- Parameters:
element- A content element- Returns:
thisbuilder for use in a chained invocation
-
addContent
Adds elements tocontentlist.- Parameters:
elements- An array of content elements- Returns:
thisbuilder for use in a chained invocation
-
content
Sets or replaces all elements forcontentlist.- Parameters:
elements- An iterable of content elements- Returns:
thisbuilder for use in a chained invocation
-
addAllContent
Adds elements tocontentlist.- Parameters:
elements- An iterable of content elements- Returns:
thisbuilder for use in a chained invocation
-
addResources
Adds one element toresourcesset.- Parameters:
element- A resources element- Returns:
thisbuilder for use in a chained invocation
-
addResources
Adds elements toresourcesset.- Parameters:
elements- An array of resources elements- Returns:
thisbuilder for use in a chained invocation
-
resources
Sets or replaces all elements forresourcesset.- Parameters:
elements- An iterable of resources elements- Returns:
thisbuilder for use in a chained invocation
-
addAllResources
Adds elements toresourcesset.- Parameters:
elements- An iterable of resources elements- Returns:
thisbuilder for use in a chained invocation
-
addKernelNames
Adds one element tokernelNamesset.- Parameters:
element- A kernelNames element- Returns:
thisbuilder for use in a chained invocation
-
addKernelNames
Adds elements tokernelNamesset.- Parameters:
elements- An array of kernelNames elements- Returns:
thisbuilder for use in a chained invocation
-
kernelNames
Sets or replaces all elements forkernelNamesset.- Parameters:
elements- An iterable of kernelNames elements- Returns:
thisbuilder for use in a chained invocation
-
addAllKernelNames
Adds elements tokernelNamesset.- Parameters:
elements- An iterable of kernelNames elements- Returns:
thisbuilder for use in a chained invocation
-
buildOptions
Initializes the optional valuebuildOptionsto buildOptions.- Parameters:
buildOptions- The value for buildOptions- Returns:
thisbuilder for chained invocation
-
buildOptions
Initializes the optional valuebuildOptionsto buildOptions.- Parameters:
buildOptions- The value for buildOptions- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newProgram.- Returns:
- An immutable instance of Program
- Throws:
IllegalStateException- if any required attributes are missing
-