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 thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PluginManifest
Creates an instance of aPluginManifestrecord class.- Parameters:
key- the value for thekeyrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentimage- the value for theimagerecord 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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-