Class VulkanLineWidthRange
java.lang.Object
com.io7m.jcoronado.api.VulkanLineWidthRange
- All Implemented Interfaces:
VulkanLineWidthRangeType
The inclusive range of supported sizes for points. Values written to variables decorated with the
PointSize built-in decoration are clamped to this range.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanLineWidthRange. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanLineWidthRange.Builderbuilder()Creates a builder forVulkanLineWidthRange.static VulkanLineWidthRangecopyOf(VulkanLineWidthRangeType instance) Creates an immutable copy of aVulkanLineWidthRangeTypevalue.booleanThis instance is equal to all instances ofVulkanLineWidthRangethat have equal attribute values.inthashCode()Computes a hash code from attributes:minimum,maximum.floatmaximum()floatminimum()static VulkanLineWidthRangeof(float minimum, float maximum) Construct a new immutableVulkanLineWidthRangeinstance.toString()Prints the immutable valueVulkanLineWidthRangewith attribute values.final VulkanLineWidthRangewithMaximum(float value) Copy the current immutable object by setting a value for themaximumattribute.final VulkanLineWidthRangewithMinimum(float value) Copy the current immutable object by setting a value for theminimumattribute.
-
Method Details
-
minimum
public float minimum()- Specified by:
minimumin interfaceVulkanLineWidthRangeType- Returns:
- The minimum width
-
maximum
public float maximum()- Specified by:
maximumin interfaceVulkanLineWidthRangeType- Returns:
- The maximum width
-
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 immutableVulkanLineWidthRangeinstance.- Parameters:
minimum- The value for theminimumattributemaximum- The value for themaximumattribute- Returns:
- An immutable VulkanLineWidthRange instance
-
copyOf
Creates an immutable copy of aVulkanLineWidthRangeTypevalue. 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 VulkanLineWidthRange instance
-
builder
Creates a builder forVulkanLineWidthRange.VulkanLineWidthRange.builder() .setMinimum(float) // requiredminimum.setMaximum(float) // requiredmaximum.build();- Returns:
- A new VulkanLineWidthRange builder
-