Record Class ServerPlatform.VeinMinerDetails

java.lang.Object
java.lang.Record
wtf.choco.veinminer.platform.ServerPlatform.VeinMinerDetails
Record Components:
name - the name of the plugin
version - the plugin's version
authors - 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 Details

    • VeinMinerDetails

      public VeinMinerDetails(@NotNull @NotNull String name, @NotNull @NotNull String version, @NotNull @NotNull @Unmodifiable List<String> authors, @Nullable @Nullable String website)
      Creates an instance of a VeinMinerDetails record class.
      Parameters:
      name - the value for the name record component
      version - the value for the version record component
      authors - the value for the authors record component
      website - the value for the website record component
  • Method Details

    • author

      @NotNull public @NotNull String author()
      Get the primary author.
      Returns:
      the author
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • version

      @NotNull public @NotNull String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • authors

      @NotNull public @NotNull @Unmodifiable List<String> authors()
      Returns the value of the authors record component.
      Returns:
      the value of the authors record component
    • website

      @Nullable public @Nullable String website()
      Returns the value of the website record component.
      Returns:
      the value of the website record component