Record Class ParsedPluginData
java.lang.Object
java.lang.Record
eu.cloudnetservice.ext.platforminject.api.data.ParsedPluginData
public record ParsedPluginData(@NonNull String name, @NonNull String version, @Nullable String apiVersion, @Nullable String description, @Nullable String homepage, @Nullable String constructionListenerClass, @NonNull Collection<String> authors, @NonNull Collection<Command> commands, @NonNull Collection<String> pluginFileNames, @NonNull Collection<Dependency> dependencies, @NonNull Collection<ExternalDependency> externalDependencies)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theapiVersionrecord component.private final @NonNull Collection<String> The field for theauthorsrecord component.private final @NonNull Collection<Command> The field for thecommandsrecord component.The field for theconstructionListenerClassrecord component.private final @NonNull Collection<Dependency> The field for thedependenciesrecord component.The field for thedescriptionrecord component.private final @NonNull Collection<ExternalDependency> The field for theexternalDependenciesrecord component.The field for thehomepagerecord component.The field for thenamerecord component.private final @NonNull Collection<String> The field for thepluginFileNamesrecord component.The field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParsedPluginData(@NonNull String name, @NonNull String version, @Nullable String apiVersion, @Nullable String description, @Nullable String homepage, @Nullable String constructionListenerClass, @NonNull Collection<String> authors, @NonNull Collection<Command> commands, @NonNull Collection<String> pluginFileNames, @NonNull Collection<Dependency> dependencies, @NonNull Collection<ExternalDependency> externalDependencies) Creates an instance of aParsedPluginDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiVersionrecord component.authors()Returns the value of theauthorsrecord component.commands()Returns the value of thecommandsrecord component.Returns the value of theconstructionListenerClassrecord component.Returns the value of thedependenciesrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalDependenciesrecord component.final inthashCode()Returns a hash code value for this object.homepage()Returns the value of thehomepagerecord component.name()Returns the value of thenamerecord component.Returns the value of thepluginFileNamesrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
name
-
version
-
apiVersion
-
description
-
homepage
-
constructionListenerClass
-
authors
The field for theauthorsrecord component. -
commands
The field for thecommandsrecord component. -
pluginFileNames
The field for thepluginFileNamesrecord component. -
dependencies
The field for thedependenciesrecord component. -
externalDependencies
The field for theexternalDependenciesrecord component.
-
-
Constructor Details
-
ParsedPluginData
public ParsedPluginData(@NonNull @NonNull String name, @NonNull @NonNull String version, @Nullable @Nullable String apiVersion, @Nullable @Nullable String description, @Nullable @Nullable String homepage, @Nullable @Nullable String constructionListenerClass, @NonNull @NonNull Collection<String> authors, @NonNull @NonNull Collection<Command> commands, @NonNull @NonNull Collection<String> pluginFileNames, @NonNull @NonNull Collection<Dependency> dependencies, @NonNull @NonNull Collection<ExternalDependency> externalDependencies) Creates an instance of aParsedPluginDatarecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentapiVersion- the value for theapiVersionrecord componentdescription- the value for thedescriptionrecord componenthomepage- the value for thehomepagerecord componentconstructionListenerClass- the value for theconstructionListenerClassrecord componentauthors- the value for theauthorsrecord componentcommands- the value for thecommandsrecord componentpluginFileNames- the value for thepluginFileNamesrecord componentdependencies- the value for thedependenciesrecord componentexternalDependencies- the value for theexternalDependenciesrecord 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). -
name
-
version
-
apiVersion
-
description
-
homepage
-
constructionListenerClass
-
authors
Returns the value of theauthorsrecord component.- Returns:
- the value of the
authorsrecord component
-
commands
Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
pluginFileNames
Returns the value of thepluginFileNamesrecord component.- Returns:
- the value of the
pluginFileNamesrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
externalDependencies
Returns the value of theexternalDependenciesrecord component.- Returns:
- the value of the
externalDependenciesrecord component
-