Record Class VersionInfo
java.lang.Object
java.lang.Record
com.djrapitops.plan.version.VersionInfo
- All Implemented Interfaces:
Comparable<VersionInfo>
public record VersionInfo(boolean release, VersionNumber version, String downloadUrl, String changeLogUrl)
extends Record
implements Comparable<VersionInfo>
Data class for reading version.txt in Github Repository.
-
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(boolean release, VersionNumber version, String downloadUrl, String changeLogUrl) Creates an instance of aVersionInforecord class.VersionInfo(boolean release, String version, String downloadUrl, String changeLogUrl) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangeLogUrlrecord component.intReturns the value of thedownloadUrlrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanrelease()Returns the value of thereleaserecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
VersionInfo
-
VersionInfo
Creates an instance of aVersionInforecord class.- Parameters:
release- the value for thereleaserecord componentversion- the value for theversionrecord componentdownloadUrl- the value for thedownloadUrlrecord componentchangeLogUrl- the value for thechangeLogUrlrecord component
-
-
Method Details
-
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 thecomparemethod from their corresponding wrapper classes. -
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<VersionInfo>
-
toString
-
release
public boolean release()Returns the value of thereleaserecord component.- Returns:
- the value of the
releaserecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
downloadUrl
Returns the value of thedownloadUrlrecord component.- Returns:
- the value of the
downloadUrlrecord component
-
changeLogUrl
Returns the value of thechangeLogUrlrecord component.- Returns:
- the value of the
changeLogUrlrecord component
-