java.lang.Object
java.lang.Record
tech.icey.vk4j.Version.Decoded
-
Constructor Summary
ConstructorsConstructorDescriptionDecoded(int variant, int major, int minor, int patch) Creates an instance of aDecodedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.toString()Returns a string representation of this record class.intvariant()Returns the value of thevariantrecord component.
-
Constructor Details
-
Decoded
public Decoded(int variant, int major, int minor, int patch) Creates an instance of aDecodedrecord class.- Parameters:
variant- the value for thevariantrecord componentmajor- the value for themajorrecord componentminor- the value for theminorrecord componentpatch- the value for thepatchrecord component
-
-
Method Details
-
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 '=='. -
variant
public int variant()Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
major
public int major()Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
public int minor()Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
public int patch()Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-