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 com.io7m.jcoronado.api.VulkanClearValueType
VulkanClearValueType.Type, VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilTypeNested classes/interfaces inherited from interface com.io7m.jcoronado.api.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.of(int red, int green, int blue, int alpha) Construct a new immutableVulkanClearValueColorIntegerSignedinstance.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueColorIntegerSignedType
colorTypeMethods inherited from interface com.io7m.jcoronado.api.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 of 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 of 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 of 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 of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanClearValueColorIntegerSignedinstance.- Parameters:
red- The value for theredattributegreen- The value for thegreenattributeblue- The value for theblueattributealpha- The value for thealphaattribute- Returns:
- An immutable VulkanClearValueColorIntegerSigned instance
-
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) // requiredred.setGreen(int) // requiredgreen.setBlue(int) // requiredblue.setAlpha(int) // requiredalpha.build();- Returns:
- A new VulkanClearValueColorIntegerSigned builder
-