Package io.github.smootheez.curseforge
Record Class CurseforgeMetadata
java.lang.Object
java.lang.Record
io.github.smootheez.curseforge.CurseforgeMetadata
- Record Components:
changelog- the changelog text for this uploadchangelogType- the format used to interpret the changelog (text, markdown, html)displayName- the display name of the uploaded filegameVersions- numeric CurseForge game version identifiersreleaseType- the release channel (release, beta, alpha)isMarkedForManualRelease- whether the upload requires manual approvalrelations- dependency relationships declared for this upload
public record CurseforgeMetadata(String changelog, ChangelogType changelogType, String displayName, List<Integer> gameVersions, String releaseType, boolean isMarkedForManualRelease, Projects relations)
extends Record
Represents the metadata payload sent when uploading a file to CurseForge.
-
Constructor Summary
ConstructorsConstructorDescriptionCurseforgeMetadata(String changelog, ChangelogType changelogType, String displayName, List<Integer> gameVersions, String releaseType, boolean isMarkedForManualRelease, Projects relations) Creates an instance of aCurseforgeMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangelogrecord component.Returns the value of thechangelogTyperecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameVersionsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisMarkedForManualReleaserecord component.Returns the value of therelationsrecord component.Returns the value of thereleaseTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CurseforgeMetadata
public CurseforgeMetadata(String changelog, ChangelogType changelogType, String displayName, List<Integer> gameVersions, String releaseType, boolean isMarkedForManualRelease, Projects relations) Creates an instance of aCurseforgeMetadatarecord class.- Parameters:
changelog- the value for thechangelogrecord componentchangelogType- the value for thechangelogTyperecord componentdisplayName- the value for thedisplayNamerecord componentgameVersions- the value for thegameVersionsrecord componentreleaseType- the value for thereleaseTyperecord componentisMarkedForManualRelease- the value for theisMarkedForManualReleaserecord componentrelations- the value for therelationsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
changelog
Returns the value of thechangelogrecord component.- Returns:
- the value of the
changelogrecord component
-
changelogType
Returns the value of thechangelogTyperecord component.- Returns:
- the value of the
changelogTyperecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
gameVersions
Returns the value of thegameVersionsrecord component.- Returns:
- the value of the
gameVersionsrecord component
-
releaseType
Returns the value of thereleaseTyperecord component.- Returns:
- the value of the
releaseTyperecord component
-
isMarkedForManualRelease
public boolean isMarkedForManualRelease()Returns the value of theisMarkedForManualReleaserecord component.- Returns:
- the value of the
isMarkedForManualReleaserecord component
-
relations
Returns the value of therelationsrecord component.- Returns:
- the value of the
relationsrecord component
-