Package wtf.choco.veinminer.platform
Record Class ServerPlatform.VeinMinerDetails
java.lang.Object
java.lang.Record
wtf.choco.veinminer.platform.ServerPlatform.VeinMinerDetails
- Record Components:
name
- the name of the pluginversion
- the plugin's version- a list of the plugin's authors
website
- the plugin's support website
- Enclosing interface:
- ServerPlatform
public static record ServerPlatform.VeinMinerDetails(@NotNull String name, @NotNull String version, @NotNull @Unmodifiable List<String> authors, @Nullable String website)
extends Record
Represents VeinMiner's details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
author()
Get the primary author.authors()
Returns the value of theauthors
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@NotNull String
version()
Returns the value of theversion
record component.@Nullable String
website()
Returns the value of thewebsite
record component.
-
Constructor Details
-
Method Details
-
author
Get the primary author.- Returns:
- the author
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
authors
Returns the value of theauthors
record component.- Returns:
- the value of the
authors
record component
-
website
Returns the value of thewebsite
record component.- Returns:
- the value of the
website
record component
-