Record Class JCSwapchainFrameIndex
java.lang.Object
java.lang.Record
com.io7m.jcoronado.utility.swapchain.JCSwapchainFrameIndex
- Record Components:
value- The index value
- All Implemented Interfaces:
Comparable<JCSwapchainFrameIndex>
public record JCSwapchainFrameIndex(int value)
extends Record
implements Comparable<JCSwapchainFrameIndex>
An index of a frame modulo the size of the current swapchain.
-
Constructor Summary
ConstructorsConstructorDescriptionJCSwapchainFrameIndex(int value) Creates an instance of aJCSwapchainFrameIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JCSwapchainFrameIndex other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
JCSwapchainFrameIndex
public JCSwapchainFrameIndex(int value) Creates an instance of aJCSwapchainFrameIndexrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JCSwapchainFrameIndex>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
value
-