Contents
Record Class Version
java.lang.Object
java.lang.Record
club.doki7.vulkan.Version
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersion
(int variant, int major, int minor, int patch) Creates an instance of aVersion
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Version
decode
(int version) int
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.int
variant()
Returns the value of thevariant
record component.
-
Field Details
-
Constructor Details
-
Version
public Version(@Unsigned int variant, @Unsigned int major, @Unsigned int minor, @Unsigned int patch) Creates an instance of aVersion
record class.- Parameters:
variant
- the value for thevariant
record componentmajor
- the value for themajor
record componentminor
- the value for theminor
record componentpatch
- the value for thepatch
record component
-
-
Method Details
-
decode
-
encode
-
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. -
variant
Returns the value of thevariant
record component.- Returns:
- the value of the
variant
record component
-
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
-