Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanClearValueColorIntegerSigned
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanClearValueColorIntegerSigned
-
- All Implemented Interfaces:
VulkanClearValueType
,VulkanClearValueType.VulkanClearValueColorIntegerSignedType
,VulkanClearValueType.VulkanClearValueColorType
public final class VulkanClearValueColorIntegerSigned extends java.lang.Object implements VulkanClearValueType.VulkanClearValueColorIntegerSignedType
A color consisting of signed integer components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanClearValueColorIntegerSigned.Builder
Builds instances of typeVulkanClearValueColorIntegerSigned
.-
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 VulkanClearValueColorIntegerSigned.Builder
builder()
Creates a builder forVulkanClearValueColorIntegerSigned
.static VulkanClearValueColorIntegerSigned
copyOf(VulkanClearValueType.VulkanClearValueColorIntegerSignedType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerSignedType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanClearValueColorIntegerSigned
that have equal attribute values.int
green()
int
hashCode()
Computes a hash code from attributes:red
,green
,blue
,alpha
.static VulkanClearValueColorIntegerSigned
of(int red, int green, int blue, int alpha)
Construct a new immutableVulkanClearValueColorIntegerSigned
instance.int
red()
java.lang.String
toString()
Prints the immutable valueVulkanClearValueColorIntegerSigned
with attribute values.VulkanClearValueColorIntegerSigned
withAlpha(int value)
Copy the current immutable object by setting a value for thealpha
attribute.VulkanClearValueColorIntegerSigned
withBlue(int value)
Copy the current immutable object by setting a value for theblue
attribute.VulkanClearValueColorIntegerSigned
withGreen(int value)
Copy the current immutable object by setting a value for thegreen
attribute.VulkanClearValueColorIntegerSigned
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.VulkanClearValueColorIntegerSignedType
colorType
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueColorType
type
-
-
-
-
Method Detail
-
red
public int red()
- Specified by:
red
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType
- Returns:
- The red channel
-
green
public int green()
- Specified by:
green
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType
- Returns:
- The green channel
-
blue
public int blue()
- Specified by:
blue
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType
- Returns:
- The blue channel
-
alpha
public int alpha()
- Specified by:
alpha
in interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType
- Returns:
- The alpha channel
-
withRed
public final VulkanClearValueColorIntegerSigned 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 VulkanClearValueColorIntegerSigned 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 VulkanClearValueColorIntegerSigned 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 VulkanClearValueColorIntegerSigned 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 ofVulkanClearValueColorIntegerSigned
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 valueVulkanClearValueColorIntegerSigned
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanClearValueColorIntegerSigned of(int red, int green, int blue, int alpha)
Construct a new immutableVulkanClearValueColorIntegerSigned
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 VulkanClearValueColorIntegerSigned instance
-
copyOf
public static VulkanClearValueColorIntegerSigned copyOf(VulkanClearValueType.VulkanClearValueColorIntegerSignedType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerSignedType
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 VulkanClearValueColorIntegerSigned instance
-
builder
public static VulkanClearValueColorIntegerSigned.Builder builder()
Creates a builder forVulkanClearValueColorIntegerSigned
.- Returns:
- A new VulkanClearValueColorIntegerSigned builder
-
-