public final class PluginDependency extends Object
| Constructor and Description |
|---|
PluginDependency(String id,
@Nullable String version,
boolean optional)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable Object o) |
String |
getId()
Returns the plugin ID of this
PluginDependency. |
Optional<String> |
getVersion()
Returns the version this
PluginDependency should match. |
int |
hashCode() |
boolean |
isOptional()
Returns whether the dependency is optional for the plugin to work correctly.
|
String |
toString() |
public String getId()
PluginDependency.public Optional<String> getVersion()
PluginDependency should match.Optional with the plugin version, may be emptypublic boolean isOptional()