Record Class XRVersion
java.lang.Object
java.lang.Record
club.doki7.openxr.XRVersion
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXRVersion(int major, int minor, int patch) Creates an instance of aXRVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XRVersiondecode(long version) longencode()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.intpatch()Returns the value of thepatchrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
XR_API_VERSION_1_0
-
XR_API_VERSION_1_1
-
-
Constructor Details
-
XRVersion
-
-
Method Details
-
decode
-
encode
#define
XR_MAKE_VERSION (major, minor, patch) \ ((((major) & 0xffffULL) << 48) | (((minor) & 0xffffULL) << 32) | ((patch) & 0xffffffffULL)) -
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. -
major
Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-