Record Class MagicUtilsConsumerRegistry.StaticMeta
java.lang.Object
java.lang.Record
dev.ua.theroer.magicutils.platform.MagicUtilsConsumerRegistry.StaticMeta
- Enclosing class:
MagicUtilsConsumerRegistry
public static record MagicUtilsConsumerRegistry.StaticMeta(String pluginName, String version, String mainClass, @Nullable String description, @Nullable String website, List<String> authors, String platformType, boolean commandsEnabled, @Nullable String permissionPrefix, Instant connectedAt)
extends Record
Immutable static metadata of a consumer, captured once at registration.
The mutable state (commands, components, diagnostics, closed) is read
separately from a
MagicUtilsConsumerRuntimeView.-
Constructor Summary
ConstructorsConstructorDescriptionStaticMeta(String pluginName, String version, String mainClass, @Nullable String description, @Nullable String website, List<String> authors, String platformType, boolean commandsEnabled, @Nullable String permissionPrefix, Instant connectedAt) Creates an instance of aStaticMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthors()Returns the value of theauthorsrecord component.booleanReturns the value of thecommandsEnabledrecord component.Returns the value of theconnectedAtrecord component.@Nullable StringReturns 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.Returns the value of themainClassrecord component.@Nullable StringReturns the value of thepermissionPrefixrecord component.Returns the value of theplatformTyperecord component.Returns the value of thepluginNamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.@Nullable Stringwebsite()Returns the value of thewebsiterecord component.
-
Constructor Details
-
StaticMeta
public StaticMeta(String pluginName, String version, String mainClass, @Nullable @Nullable String description, @Nullable @Nullable String website, List<String> authors, String platformType, boolean commandsEnabled, @Nullable @Nullable String permissionPrefix, Instant connectedAt) Creates an instance of aStaticMetarecord class.- Parameters:
pluginName- the value for thepluginNamerecord componentversion- the value for theversionrecord componentmainClass- the value for themainClassrecord componentdescription- the value for thedescriptionrecord componentwebsite- the value for thewebsiterecord componentauthors- the value for theauthorsrecord componentplatformType- the value for theplatformTyperecord componentcommandsEnabled- the value for thecommandsEnabledrecord componentpermissionPrefix- the value for thepermissionPrefixrecord componentconnectedAt- the value for theconnectedAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
website
Returns the value of thewebsiterecord component.- Returns:
- the value of the
websiterecord component
-
authors
-
platformType
Returns the value of theplatformTyperecord component.- Returns:
- the value of the
platformTyperecord component
-
commandsEnabled
public boolean commandsEnabled()Returns the value of thecommandsEnabledrecord component.- Returns:
- the value of the
commandsEnabledrecord component
-
permissionPrefix
Returns the value of thepermissionPrefixrecord component.- Returns:
- the value of the
permissionPrefixrecord component
-
connectedAt
Returns the value of theconnectedAtrecord component.- Returns:
- the value of the
connectedAtrecord component
-