Class VulkanViewportBoundsRange
java.lang.Object
com.io7m.jcoronado.api.VulkanViewportBoundsRange
- All Implemented Interfaces:
VulkanViewportBoundsRangeType
public final class VulkanViewportBoundsRange
extends Object
implements VulkanViewportBoundsRangeType
The inclusive range that the corners of a viewport must be contained in.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanViewportBoundsRange. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanViewportBoundsRange.static VulkanViewportBoundsRangecopyOf(VulkanViewportBoundsRangeType instance) Creates an immutable copy of aVulkanViewportBoundsRangeTypevalue.booleanThis instance is equal to all instances ofVulkanViewportBoundsRangethat have equal attribute values.inthashCode()Computes a hash code from attributes:minimum,maximum.floatmaximum()floatminimum()static VulkanViewportBoundsRangeof(float minimum, float maximum) Construct a new immutableVulkanViewportBoundsRangeinstance.toString()Prints the immutable valueVulkanViewportBoundsRangewith attribute values.withMaximum(float value) Copy the current immutable object by setting a value for themaximumattribute.withMinimum(float value) Copy the current immutable object by setting a value for theminimumattribute.
-
Method Details
-
minimum
public float minimum()- Specified by:
minimumin interfaceVulkanViewportBoundsRangeType- Returns:
- The minimum position
-
maximum
public float maximum()- Specified by:
maximumin interfaceVulkanViewportBoundsRangeType- Returns:
- The maximum position
-
withMinimum
Copy the current immutable object by setting a value for theminimumattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for minimum- Returns:
- A modified copy of the
thisobject
-
withMaximum
Copy the current immutable object by setting a value for themaximumattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for maximum- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanViewportBoundsRangeinstance.- Parameters:
minimum- The value for theminimumattributemaximum- The value for themaximumattribute- Returns:
- An immutable VulkanViewportBoundsRange instance
-
copyOf
Creates an immutable copy of aVulkanViewportBoundsRangeTypevalue. 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 VulkanViewportBoundsRange instance
-
builder
Creates a builder forVulkanViewportBoundsRange.VulkanViewportBoundsRange.builder() .setMinimum(float) // requiredminimum.setMaximum(float) // requiredmaximum.build();- Returns:
- A new VulkanViewportBoundsRange builder
-