Package io.github.treesitter.jtreesitter
Record Class LanguageMetadata.Version
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.LanguageMetadata.Version
- Enclosing class:
LanguageMetadata
The Semantic Version of the Language.
This version information may be used to signal if a given parser is incompatible with existing queries when upgrading between versions.
- Since:
- 0.25.0
-
Constructor Summary
ConstructorsConstructorDescriptionVersion
(short major, short minor, short patch) Creates an instance of aVersion
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.short
major()
Returns the value of themajor
record component.short
minor()
Returns the value of theminor
record component.short
patch()
Returns the value of thepatch
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
Version
-
-
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 '=='. -
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
-