Record Class ParchmentTreeV1
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.parchment.ParchmentTreeV1
public record ParchmentTreeV1(String version, @Nullable List<ParchmentTreeV1.Class> classes, @Nullable List<ParchmentTreeV1.Package> packages)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionParchmentTreeV1(String version, @Nullable List<ParchmentTreeV1.Class> classes, @Nullable List<ParchmentTreeV1.Package> packages)Creates an instance of aParchmentTreeV1record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<ParchmentTreeV1.Class>classes()Returns the value of theclassesrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@Nullable List<ParchmentTreeV1.Package>packages()Returns the value of thepackagesrecord component.toString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.void
-
Constructor Details
-
ParchmentTreeV1
public ParchmentTreeV1(String version, @Nullable @Nullable List<ParchmentTreeV1.Class> classes, @Nullable @Nullable List<ParchmentTreeV1.Package> packages)Creates an instance of aParchmentTreeV1record class.- Parameters:
version- the value for theversionrecord componentclasses- the value for theclassesrecord componentpackages- the value for thepackagesrecord component
-
-
Method Details
-
visit
public void visit(net.fabricmc.mappingio.MappingVisitor visitor, String srcNamespace) throws IOException- Throws:
IOException
-
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). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
classes
Returns the value of theclassesrecord component.- Returns:
- the value of the
classesrecord component
-
packages
Returns the value of thepackagesrecord component.- Returns:
- the value of the
packagesrecord component
-