Contents
Record Class WorldGenPlugin.Version
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.WorldGenPlugin.Version
- All Implemented Interfaces:
Comparable<WorldGenPlugin.Version>
- Enclosing class:
WorldGenPlugin
public static record WorldGenPlugin.Version(@Nonnull String name, @Nonnull Path path, @Nonnull PluginManifest manifest)
extends Record
implements Comparable<WorldGenPlugin.Version>
- Since:
- 2020/05/01
- Version:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionVersion(String name, Path path, PluginManifest manifest) Creates an instance of aVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.manifest()Returns the value of themanifestrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Version
Creates an instance of aVersionrecord class.- Parameters:
name- the value for thenamerecord componentpath- the value for thepathrecord componentmanifest- the value for themanifestrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<WorldGenPlugin.Version>
-
getPackName
-
toString
-
hashCode
-
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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
manifest
Returns the value of themanifestrecord component.- Returns:
- the value of the
manifestrecord component
-