Class ImmutableCLData.Builder
java.lang.Object
net.bmahe.genetics4j.gpu.spec.fitness.cldata.ImmutableCLData.Builder
- Enclosing class:
ImmutableCLData
@Generated(from="CLData",
generator="Immutables")
public static final class ImmutableCLData.Builder
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.jocl.cl_memprivate intprivate static final longprivate static final longprivate static final longprivate longprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newCLData.final ImmutableCLData.BuilderclMem(org.jocl.cl_mem clMem) Initializes the value for theclMemattribute.final ImmutableCLData.BuilderclType(int clType) Initializes the value for theclTypeattribute.private Stringfinal ImmutableCLData.BuilderFill a builder with attribute values from the providedCLDatainstance.final ImmutableCLData.Buildersize(int size) Initializes the value for thesizeattribute.
-
Field Details
-
INIT_BIT_CL_MEM
private static final long INIT_BIT_CL_MEM- See Also:
-
INIT_BIT_CL_TYPE
private static final long INIT_BIT_CL_TYPE- See Also:
-
INIT_BIT_SIZE
private static final long INIT_BIT_SIZE- See Also:
-
initBits
private long initBits -
clMem
private org.jocl.cl_mem clMem -
clType
private int clType -
size
private int size
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedCLDatainstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
clMem
Initializes the value for theclMemattribute.- Parameters:
clMem- The value for clMem- Returns:
thisbuilder for use in a chained invocation
-
clType
Initializes the value for theclTypeattribute.- Parameters:
clType- The value for clType- Returns:
thisbuilder for use in a chained invocation
-
size
Initializes the value for thesizeattribute.- Parameters:
size- The value for size- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCLData.- Returns:
- An immutable instance of CLData
- Throws:
IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
-