Record Class SortableGameVersion
java.lang.Object
java.lang.Record
io.github.matyrobbrt.curseforgeapi.schemas.SortableGameVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegameVersion
record component.Returns the value of thegameVersionName
record component.Returns the value of thegameVersionPadded
record component.Returns the value of thegameVersionReleaseDate
record component.Returns the value of thegameVersionTypeId
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SortableGameVersion
public SortableGameVersion(String gameVersionName, String gameVersionPadded, String gameVersion, String gameVersionReleaseDate, Integer gameVersionTypeId) Creates an instance of aSortableGameVersion
record class.- Parameters:
gameVersionName
- the value for thegameVersionName
record componentgameVersionPadded
- the value for thegameVersionPadded
record componentgameVersion
- the value for thegameVersion
record componentgameVersionReleaseDate
- the value for thegameVersionReleaseDate
record componentgameVersionTypeId
- the value for thegameVersionTypeId
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object)
. -
gameVersionName
Returns the value of thegameVersionName
record component.- Returns:
- the value of the
gameVersionName
record component
-
gameVersionPadded
Returns the value of thegameVersionPadded
record component.- Returns:
- the value of the
gameVersionPadded
record component
-
gameVersion
Returns the value of thegameVersion
record component.- Returns:
- the value of the
gameVersion
record component
-
gameVersionReleaseDate
Returns the value of thegameVersionReleaseDate
record component.- Returns:
- the value of the
gameVersionReleaseDate
record component
-
gameVersionTypeId
Returns the value of thegameVersionTypeId
record component.- Returns:
- the value of the
gameVersionTypeId
record component
-