public static final class JCGLColorBufferMaskingState.Builder extends Object
JCGLColorBufferMaskingState.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
JCGLColorBufferMaskingState |
build()
Builds a new
JCGLColorBufferMaskingState. |
JCGLColorBufferMaskingState.Builder |
from(JCGLColorBufferMaskingStateType instance)
Fill a builder with attribute values from the provided
JCGLColorBufferMaskingStateType instance. |
JCGLColorBufferMaskingState.Builder |
setAlpha(boolean alpha)
Initializes the value for the
alpha attribute. |
JCGLColorBufferMaskingState.Builder |
setBlue(boolean blue)
Initializes the value for the
blue attribute. |
JCGLColorBufferMaskingState.Builder |
setGreen(boolean green)
Initializes the value for the
green attribute. |
JCGLColorBufferMaskingState.Builder |
setRed(boolean red)
Initializes the value for the
red attribute. |
public final JCGLColorBufferMaskingState.Builder from(JCGLColorBufferMaskingStateType instance)
JCGLColorBufferMaskingStateType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JCGLColorBufferMaskingState.Builder setRed(boolean red)
red attribute.
If not set, this attribute will have a default value as returned by the initializer of red.
red - The value for redthis builder for use in a chained invocationpublic final JCGLColorBufferMaskingState.Builder setGreen(boolean green)
green attribute.
If not set, this attribute will have a default value as returned by the initializer of green.
green - The value for greenthis builder for use in a chained invocationpublic final JCGLColorBufferMaskingState.Builder setBlue(boolean blue)
blue attribute.
If not set, this attribute will have a default value as returned by the initializer of blue.
blue - The value for bluethis builder for use in a chained invocationpublic final JCGLColorBufferMaskingState.Builder setAlpha(boolean alpha)
alpha attribute.
If not set, this attribute will have a default value as returned by the initializer of alpha.
alpha - The value for alphathis builder for use in a chained invocationpublic JCGLColorBufferMaskingState build()
JCGLColorBufferMaskingState.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com