Record Class TinyJarInfo
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.tiny.TinyJarInfo
-
Constructor Summary
ConstructorsConstructorDescriptionTinyJarInfo(boolean v2, Optional<String> minecraftVersionId) Creates an instance of aTinyJarInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TinyJarInfofinal inthashCode()Returns a hash code value for this object.Returns the value of theminecraftVersionIdrecord component.final StringtoString()Returns a string representation of this record class.booleanv2()Returns the value of thev2record component.
-
Constructor Details
-
TinyJarInfo
Creates an instance of aTinyJarInforecord class.- Parameters:
v2- the value for thev2record componentminecraftVersionId- the value for theminecraftVersionIdrecord component
-
-
Method Details
-
get
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
v2
public boolean v2()Returns the value of thev2record component.- Returns:
- the value of the
v2record component
-
minecraftVersionId
Returns the value of theminecraftVersionIdrecord component.- Returns:
- the value of the
minecraftVersionIdrecord component
-