Record Class PluginMeta
java.lang.Object
java.lang.Record
fr.fidorial.plugin.PluginMeta
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPluginMeta(String id, String name, String version, String main, List<String> authors, List<String> depends) PluginMeta(String id, String name, String version, String main, List<String> authors, List<String> depends, Map<String, PluginMeta.PermissionEntry> permissions) Creates an instance of aPluginMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthors()Returns the value of theauthorsrecord component.depends()Returns the value of thedependsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.main()Returns the value of themainrecord component.name()Returns the value of thenamerecord component.Returns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PluginMeta
-
PluginMeta
public PluginMeta(String id, String name, String version, String main, List<String> authors, List<String> depends, Map<String, PluginMeta.PermissionEntry> permissions) Creates an instance of aPluginMetarecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentmain- the value for themainrecord componentauthors- the value for theauthorsrecord componentdepends- the value for thedependsrecord componentpermissions- the value for thepermissionsrecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-
main
Returns the value of themainrecord component.- Returns:
- the value of the
mainrecord component
-
authors
-
depends
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-