Record Class MajorMinorVersion
java.lang.Object
java.lang.Record
net.minestom.server.utils.MajorMinorVersion
-
Constructor Summary
ConstructorsConstructorDescriptionMajorMinorVersion(int major, int minor) Creates an instance of aMajorMinorVersionrecord 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.toString()Returns a string representation of this record class.
-
Constructor Details
-
MajorMinorVersion
public MajorMinorVersion(int major, int minor) Creates an instance of aMajorMinorVersionrecord class.- Parameters:
major- the value for themajorrecord componentminor- the value for theminorrecord 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 thecomparemethod from their corresponding wrapper classes. -
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
-