Record Class VersionManifest
java.lang.Object
java.lang.Record
dev.lukebemish.crochet.internal.pistonmeta.VersionManifest
public record VersionManifest(VersionManifest.Latest latest, List<VersionManifest.Version> versions)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersionManifest(VersionManifest.Latest latest, List<VersionManifest.Version> versions) Creates an instance of aVersionManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.latest()Returns the value of thelatestrecord component.final StringtoString()Returns a string representation of this record class.versions()Returns the value of theversionsrecord component.
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON -
VERSION_MANIFEST
- See Also:
-
PISTON_META_URL
- See Also:
-
PISTON_DATA_URL
- See Also:
-
-
Constructor Details
-
VersionManifest
Creates an instance of aVersionManifestrecord class.- Parameters:
latest- the value for thelatestrecord componentversions- the value for theversionsrecord component
-
-
Method Details
-
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). -
latest
Returns the value of thelatestrecord component.- Returns:
- the value of the
latestrecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-