Class VulkanViewportDimensions
java.lang.Object
com.io7m.jcoronado.api.VulkanViewportDimensions
- All Implemented Interfaces:
VulkanViewportDimensionsType
The maximum viewport dimensions in the X (width) and Y (height) dimensions, respectively.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanViewportDimensions. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanViewportDimensions.static VulkanViewportDimensionscopyOf(VulkanViewportDimensionsType instance) Creates an immutable copy of aVulkanViewportDimensionsTypevalue.booleanThis instance is equal to all instances ofVulkanViewportDimensionsthat have equal attribute values.inthashCode()Computes a hash code from attributes:maximumX,maximumY.intmaximumX()intmaximumY()toString()Prints the immutable valueVulkanViewportDimensionswith attribute values.final VulkanViewportDimensionswithMaximumX(int value) Copy the current immutable object by setting a value for themaximumXattribute.final VulkanViewportDimensionswithMaximumY(int value) Copy the current immutable object by setting a value for themaximumYattribute.
-
Method Details
-
maximumX
public int maximumX()- Specified by:
maximumXin interfaceVulkanViewportDimensionsType- Returns:
- The maximum value in the X dimension
-
maximumY
public int maximumY()- Specified by:
maximumYin interfaceVulkanViewportDimensionsType- Returns:
- The maximum value in the Y dimension
-
withMaximumX
Copy the current immutable object by setting a value for themaximumXattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for maximumX- Returns:
- A modified copy or the
thisobject
-
withMaximumY
Copy the current immutable object by setting a value for themaximumYattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for maximumY- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanViewportDimensionsTypevalue. 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 VulkanViewportDimensions instance
-
builder
Creates a builder forVulkanViewportDimensions.VulkanViewportDimensions.builder() .setMaximumX(int) // optional
maximumX.setMaximumY(int) // optionalmaximumY.build();- Returns:
- A new VulkanViewportDimensions builder
-