Record Class VersionConfig
java.lang.Object
java.lang.Record
com.fancyinnovations.versionchecker.VersionConfig
-
Constructor Summary
ConstructorsConstructorDescriptionVersionConfig(String version, String channel, String commit) Creates an instance of aVersionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.commit()Returns the value of thecommitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static VersionConfigstatic VersionConfigloadVersionConfig(String path) voidfinal StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
VersionConfig
-
-
Method Details
-
loadVersionConfig
-
loadVersionConfig
- Throws:
IOException
-
saveFile
- Throws:
IOException
-
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 withObjects::equals(Object,Object). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
commit
Returns the value of thecommitrecord component.- Returns:
- the value of the
commitrecord component
-