- 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 class
PluginMetadata.Builder
Builder to build aPluginMetadata
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginMetadata.Builder
builder(String name)
Initiates a builder for aPluginMetadata
.boolean
equals(Object obj)
Optional<String>
getDescription()
Gets the description of the pluginList<String>
getDevelopers()
Gets the list of developerrs that contributed to this pluginString
getName()
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 pluginint
hashCode()
String
toString()
-
-
-
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
-
-