Class VulkanClearValueColorIntegerSigned
java.lang.Object
com.io7m.jcoronado.api.VulkanClearValueColorIntegerSigned
- All Implemented Interfaces:
VulkanClearValueType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorType
public final class VulkanClearValueColorIntegerSigned
extends Object
implements VulkanClearValueType.VulkanClearValueColorIntegerSignedType
A color consisting of signed integer components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanClearValueColorIntegerSigned.Nested classes/interfaces inherited from interface VulkanClearValueType
VulkanClearValueType.Type, VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilTypeNested classes/interfaces inherited from interface VulkanClearValueType.VulkanClearValueColorType
VulkanClearValueType.VulkanClearValueColorType.ColorType -
Method Summary
Modifier and TypeMethodDescriptionintalpha()intblue()builder()Creates a builder forVulkanClearValueColorIntegerSigned.Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerSignedTypevalue.booleanThis instance is equal to all instances ofVulkanClearValueColorIntegerSignedthat have equal attribute values.intgreen()inthashCode()Computes a hash code from attributes:red,green,blue,alpha.intred()toString()Prints the immutable valueVulkanClearValueColorIntegerSignedwith attribute values.withAlpha(int value) Copy the current immutable object by setting a value for thealphaattribute.withBlue(int value) Copy the current immutable object by setting a value for theblueattribute.withGreen(int value) Copy the current immutable object by setting a value for thegreenattribute.withRed(int value) Copy the current immutable object by setting a value for theredattribute.Methods inherited from interface VulkanClearValueType.VulkanClearValueColorIntegerSignedType
colorTypeMethods inherited from interface VulkanClearValueType.VulkanClearValueColorType
type
-
Method Details
-
red
public int red()- Specified by:
redin interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType- Returns:
- The red channel
-
green
public int green()- Specified by:
greenin interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType- Returns:
- The green channel
-
blue
public int blue()- Specified by:
bluein interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType- Returns:
- The blue channel
-
alpha
public int alpha()- Specified by:
alphain interfaceVulkanClearValueType.VulkanClearValueColorIntegerSignedType- Returns:
- The alpha channel
-
withRed
Copy the current immutable object by setting a value for theredattribute. 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 or the
thisobject
-
withGreen
Copy the current immutable object by setting a value for thegreenattribute. 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 or the
thisobject
-
withBlue
Copy the current immutable object by setting a value for theblueattribute. 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 or the
thisobject
-
withAlpha
Copy the current immutable object by setting a value for thealphaattribute. 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 or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanClearValueColorIntegerSigned copyOf(VulkanClearValueType.VulkanClearValueColorIntegerSignedType instance) Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerSignedTypevalue. 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
Creates a builder forVulkanClearValueColorIntegerSigned.VulkanClearValueColorIntegerSigned.builder() .setRed(int) // optional
red.setGreen(int) // optionalgreen.setBlue(int) // optionalblue.setAlpha(int) // optionalalpha.build();- Returns:
- A new VulkanClearValueColorIntegerSigned builder
-