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 aXRVersion
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XRVersion
decode
(long version) long
encode()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
major()
Returns the value of themajor
record component.int
minor()
Returns the value of theminor
record component.int
patch()
Returns the value of thepatch
record component.final String
toString()
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 thecompare
method from their corresponding wrapper classes. -
major
Returns the value of themajor
record component.- Returns:
- the value of the
major
record component
-
minor
Returns the value of theminor
record component.- Returns:
- the value of the
minor
record component
-
patch
Returns the value of thepatch
record component.- Returns:
- the value of the
patch
record component
-