- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.PluginMetadata
-
public final class PluginMetadata extends Object
Holds metadata describing a plugin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginMetadata.BuilderBuilder to build aPluginMetadataobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginMetadata.Builderbuilder(String name)Initiates a builder for aPluginMetadata.booleanequals(Object obj)Optional<String>getDescription()Gets the description of the pluginList<String>getDevelopers()Gets the list of developerrs that contributed to this pluginStringgetName()Gets the name of the pluginOptional<String>getUrl()Gets the URL of the plugin's site or repository.Optional<String>getVersion()Gets the version of the plugininthashCode()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the plugin- Returns:
- the name
-
getDescription
public Optional<String> getDescription()
Gets the description of the plugin- Returns:
- the description
-
getDevelopers
public List<String> getDevelopers()
Gets the list of developerrs that contributed to this plugin- Returns:
- the list of developers
-
getUrl
public Optional<String> getUrl()
Gets the URL of the plugin's site or repository.- Returns:
- the url
-
builder
public static PluginMetadata.Builder builder(String name)
Initiates a builder for aPluginMetadata.- Parameters:
name- the name of the plugin- Returns:
- a new
PluginMetadata.Builder
-
-