@Generated(value={"Modifiables.generator","JCGLColorBufferMaskingStateType"}) public final class JCGLColorBufferMaskingStateMutable extends Object implements JCGLColorBufferMaskingStateType
JCGLColorBufferMaskingStateType type.
Use the create() static factory methods to create new instances.
JCGLColorBufferMaskingStateMutable is not thread-safe
JCGLColorBufferMaskingState| Modifier and Type | Method and Description |
|---|---|
boolean |
alpha() |
boolean |
alphaIsSet()
Returns
true if the default attribute alpha is set. |
boolean |
blue() |
boolean |
blueIsSet()
Returns
true if the default attribute blue is set. |
JCGLColorBufferMaskingStateMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static JCGLColorBufferMaskingStateMutable |
create()
Construct a modifiable instance of
JCGLColorBufferMaskingStateType. |
static JCGLColorBufferMaskingStateMutable |
create(boolean red,
boolean green,
boolean blue,
boolean alpha)
Construct a modifiable instance of
JCGLColorBufferMaskingStateType. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLColorBufferMaskingStateMutable that have equal attribute values. |
JCGLColorBufferMaskingStateMutable |
from(JCGLColorBufferMaskingStateType instance)
Fill this modifiable instance with attribute values from the provided
JCGLColorBufferMaskingStateType instance. |
boolean |
green() |
boolean |
greenIsSet()
Returns
true if the default attribute green is set. |
int |
hashCode()
Computes a hash code from attributes:
red, green, blue, alpha. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
boolean |
red() |
boolean |
redIsSet()
Returns
true if the default attribute red is set. |
JCGLColorBufferMaskingStateMutable |
setAlpha(boolean alpha)
Assigns a value to the
alpha attribute. |
JCGLColorBufferMaskingStateMutable |
setBlue(boolean blue)
Assigns a value to the
blue attribute. |
JCGLColorBufferMaskingStateMutable |
setGreen(boolean green)
Assigns a value to the
green attribute. |
JCGLColorBufferMaskingStateMutable |
setRed(boolean red)
Assigns a value to the
red attribute. |
JCGLColorBufferMaskingState |
toImmutable()
Converts to
JCGLColorBufferMaskingState. |
String |
toString()
Generates a string representation of this
JCGLColorBufferMaskingStateType. |
JCGLColorBufferMaskingStateMutable |
unsetAlpha()
Reset an attribute to its initial value.
|
JCGLColorBufferMaskingStateMutable |
unsetBlue()
Reset an attribute to its initial value.
|
JCGLColorBufferMaskingStateMutable |
unsetGreen()
Reset an attribute to its initial value.
|
JCGLColorBufferMaskingStateMutable |
unsetRed()
Reset an attribute to its initial value.
|
public static JCGLColorBufferMaskingStateMutable create(boolean red, boolean green, boolean blue, boolean alpha)
JCGLColorBufferMaskingStateType.public static JCGLColorBufferMaskingStateMutable create()
JCGLColorBufferMaskingStateType.public final boolean red()
red in interface JCGLColorBufferMaskingStateTypepublic final boolean green()
green in interface JCGLColorBufferMaskingStateTypepublic final boolean blue()
blue in interface JCGLColorBufferMaskingStateTypepublic final boolean alpha()
alpha in interface JCGLColorBufferMaskingStateTypepublic JCGLColorBufferMaskingStateMutable clear()
this for use in a chained invocationpublic JCGLColorBufferMaskingStateMutable from(JCGLColorBufferMaskingStateType instance)
JCGLColorBufferMaskingStateType instance.
Regular attribute values will be overridden, i.e. replaced with ones of an instance.
Any of the instance's absent optional values will not be copied (will not override current values).instance - The instance from which to copy valuesthis for use in a chained invocationpublic JCGLColorBufferMaskingStateMutable setRed(boolean red)
red attribute.
If not set, this attribute will have a default value returned by the initializer of red.
red - The value for redthis for use in a chained invocationpublic JCGLColorBufferMaskingStateMutable setGreen(boolean green)
green attribute.
If not set, this attribute will have a default value returned by the initializer of green.
green - The value for greenthis for use in a chained invocationpublic JCGLColorBufferMaskingStateMutable setBlue(boolean blue)
blue attribute.
If not set, this attribute will have a default value returned by the initializer of blue.
blue - The value for bluethis for use in a chained invocationpublic JCGLColorBufferMaskingStateMutable setAlpha(boolean alpha)
alpha attribute.
If not set, this attribute will have a default value returned by the initializer of alpha.
alpha - The value for alphathis for use in a chained invocationpublic final boolean redIsSet()
true if the default attribute red is set.true if setpublic final boolean greenIsSet()
true if the default attribute green is set.true if setpublic final boolean blueIsSet()
true if the default attribute blue is set.true if setpublic final boolean alphaIsSet()
true if the default attribute alpha is set.true if setpublic final JCGLColorBufferMaskingStateMutable unsetRed()
this for use in a chained invocationpublic final JCGLColorBufferMaskingStateMutable unsetGreen()
this for use in a chained invocationpublic final JCGLColorBufferMaskingStateMutable unsetBlue()
this for use in a chained invocationpublic final JCGLColorBufferMaskingStateMutable unsetAlpha()
this for use in a chained invocationpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final JCGLColorBufferMaskingState toImmutable()
JCGLColorBufferMaskingState.public boolean equals(Object another)
JCGLColorBufferMaskingStateMutable that have equal attribute values.public int hashCode()
red, green, blue, alpha.Copyright © 2017 <code@io7m.com> http://io7m.com