Record Class PluginManifest
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.api.plugins.PluginManifest
- Record Components:
key
- unique plugin key - plugins with the same key are recognized as different version of the same pluginname
- human-readable plugin nameversion
- plugin versiondescription
- human-readable plugin descriptionimage
- url to image to be shown in list of plugins
public record PluginManifest(String key, String name, String version, String description, String image)
extends Record
Object representing plugin manifest that contains basic info about plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.image()
Returns the value of theimage
record component.key()
Returns the value of thekey
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
PluginManifest
Creates an instance of aPluginManifest
record class.- Parameters:
key
- the value for thekey
record componentname
- the value for thename
record componentversion
- the value for theversion
record componentdescription
- the value for thedescription
record componentimage
- the value for theimage
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)
. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
image
Returns the value of theimage
record component.- Returns:
- the value of the
image
record component
-