Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanClearValueColorIntegerUnsigned
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanClearValueColorIntegerUnsigned
-
- All Implemented Interfaces:
VulkanClearValueType
,VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
,VulkanClearValueType.VulkanClearValueColorType
public final class VulkanClearValueColorIntegerUnsigned extends java.lang.Object implements VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
A color consisting of unsigned integer components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanClearValueColorIntegerUnsigned.Builder
Builds instances of typeVulkanClearValueColorIntegerUnsigned
.-
Nested classes/interfaces inherited from interface com.io7m.jcoronado.api.VulkanClearValueType
VulkanClearValueType.Type, VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilType
-
Nested classes/interfaces inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueColorType
VulkanClearValueType.VulkanClearValueColorType.ColorType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
alpha()
int
blue()
static VulkanClearValueColorIntegerUnsigned.Builder
builder()
Creates a builder forVulkanClearValueColorIntegerUnsigned
.static VulkanClearValueColorIntegerUnsigned
copyOf(VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanClearValueColorIntegerUnsigned
that have equal attribute values.int
green()
int
hashCode()
Computes a hash code from attributes:red
,green
,blue
,alpha
.static VulkanClearValueColorIntegerUnsigned
of(int red, int green, int blue, int alpha)
Construct a new immutableVulkanClearValueColorIntegerUnsigned
instance.int
red()
java.lang.String
toString()
Prints the immutable valueVulkanClearValueColorIntegerUnsigned
with attribute values.VulkanClearValueColorIntegerUnsigned
withAlpha(int value)
Copy the current immutable object by setting a value for thealpha
attribute.VulkanClearValueColorIntegerUnsigned
withBlue(int value)
Copy the current immutable object by setting a value for theblue
attribute.VulkanClearValueColorIntegerUnsigned
withGreen(int value)
Copy the current immutable object by setting a value for thegreen
attribute.VulkanClearValueColorIntegerUnsigned
withRed(int value)
Copy the current immutable object by setting a value for thered
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
colorType
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueColorType
type
-
-
-
-
Method Detail
-
red
public int red()
- Specified by:
red
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
- Returns:
- The red channel
-
green
public int green()
- Specified by:
green
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
- Returns:
- The green channel
-
blue
public int blue()
- Specified by:
blue
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
- Returns:
- The blue channel
-
alpha
public int alpha()
- Specified by:
alpha
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
- Returns:
- The alpha channel
-
withRed
public final VulkanClearValueColorIntegerUnsigned withRed(int value)
Copy the current immutable object by setting a value for thered
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for red- Returns:
- A modified copy of the
this
object
-
withGreen
public final VulkanClearValueColorIntegerUnsigned withGreen(int value)
Copy the current immutable object by setting a value for thegreen
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for green- Returns:
- A modified copy of the
this
object
-
withBlue
public final VulkanClearValueColorIntegerUnsigned withBlue(int value)
Copy the current immutable object by setting a value for theblue
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for blue- Returns:
- A modified copy of the
this
object
-
withAlpha
public final VulkanClearValueColorIntegerUnsigned withAlpha(int value)
Copy the current immutable object by setting a value for thealpha
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for alpha- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanClearValueColorIntegerUnsigned
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:red
,green
,blue
,alpha
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanClearValueColorIntegerUnsigned
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanClearValueColorIntegerUnsigned of(int red, int green, int blue, int alpha)
Construct a new immutableVulkanClearValueColorIntegerUnsigned
instance.- Parameters:
red
- The value for thered
attributegreen
- The value for thegreen
attributeblue
- The value for theblue
attributealpha
- The value for thealpha
attribute- Returns:
- An immutable VulkanClearValueColorIntegerUnsigned instance
-
copyOf
public static VulkanClearValueColorIntegerUnsigned copyOf(VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable VulkanClearValueColorIntegerUnsigned instance
-
builder
public static VulkanClearValueColorIntegerUnsigned.Builder builder()
Creates a builder forVulkanClearValueColorIntegerUnsigned
.- Returns:
- A new VulkanClearValueColorIntegerUnsigned builder
-
-