Class ImmutablePlatform.Builder
java.lang.Object
net.bmahe.genetics4j.gpu.opencl.model.ImmutablePlatform.Builder
- Enclosing class:
ImmutablePlatform
@Generated(from="Platform",
generator="Immutables")
public static final class ImmutablePlatform.Builder
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate longprivate Stringprivate intprivate org.jocl.cl_platform_idprivate PlatformProfileprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtensions(Iterable<String> elements) Adds elements toextensionsset.addExtensions(String element) Adds one element toextensionsset.addExtensions(String... elements) Adds elements toextensionsset.build()Builds a newPlatform.extensions(Iterable<String> elements) Sets or replaces all elements forextensionsset.private StringFill a builder with attribute values from the providedPlatforminstance.Initializes the value for thenameattribute.numDevices(int numDevices) Initializes the value for thenumDevicesattribute.platformId(org.jocl.cl_platform_id platformId) Initializes the value for theplatformIdattribute.profile(PlatformProfile profile) Initializes the value for theprofileattribute.Initializes the value for thevendorattribute.Initializes the value for theversionattribute.
-
Field Details
-
INIT_BIT_PLATFORM_ID
private static final long INIT_BIT_PLATFORM_ID- See Also:
-
INIT_BIT_PROFILE
private static final long INIT_BIT_PROFILE- See Also:
-
INIT_BIT_VERSION
private static final long INIT_BIT_VERSION- See Also:
-
INIT_BIT_NAME
private static final long INIT_BIT_NAME- See Also:
-
INIT_BIT_VENDOR
private static final long INIT_BIT_VENDOR- See Also:
-
INIT_BIT_NUM_DEVICES
private static final long INIT_BIT_NUM_DEVICES- See Also:
-
initBits
private long initBits -
platformId
private org.jocl.cl_platform_id platformId -
profile
-
version
-
name
-
vendor
-
extensions
-
numDevices
private int numDevices
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedPlatforminstance. 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
-
platformId
Initializes the value for theplatformIdattribute.- Parameters:
platformId- The value for platformId- Returns:
thisbuilder for use in a chained invocation
-
profile
Initializes the value for theprofileattribute.- Parameters:
profile- The value for profile- Returns:
thisbuilder for use in a chained invocation
-
version
Initializes the value for theversionattribute.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
vendor
Initializes the value for thevendorattribute.- Parameters:
vendor- The value for vendor- Returns:
thisbuilder for use in a chained invocation
-
addExtensions
Adds one element toextensionsset.- Parameters:
element- A extensions element- Returns:
thisbuilder for use in a chained invocation
-
addExtensions
Adds elements toextensionsset.- Parameters:
elements- An array of extensions elements- Returns:
thisbuilder for use in a chained invocation
-
extensions
Sets or replaces all elements forextensionsset.- Parameters:
elements- An iterable of extensions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllExtensions
Adds elements toextensionsset.- Parameters:
elements- An iterable of extensions elements- Returns:
thisbuilder for use in a chained invocation
-
numDevices
Initializes the value for thenumDevicesattribute.- Parameters:
numDevices- The value for numDevices- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPlatform.- Returns:
- An immutable instance of Platform
- Throws:
IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
-