Record Class MappingDataLoader.IdentifiersPair
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.data.MappingDataLoader.IdentifiersPair
- Enclosing class:
- MappingDataLoader
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifiersPair(List<String> identifiers) IdentifiersPair(List<String> unmapped, List<String> mapped) IdentifiersPair(List<String> unmapped, List<String> mapped, boolean identity) Creates an instance of aIdentifiersPairrecord 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.booleanidentity()Returns the value of theidentityrecord component.mapped()Returns the value of themappedrecord component.final StringtoString()Returns a string representation of this record class.unmapped()Returns the value of theunmappedrecord component.
-
Constructor Details
-
IdentifiersPair
-
IdentifiersPair
-
IdentifiersPair
Creates an instance of aIdentifiersPairrecord class.- Parameters:
unmapped- the value for theunmappedrecord componentmapped- the value for themappedrecord componentidentity- the value for theidentityrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
unmapped
Returns the value of theunmappedrecord component.- Returns:
- the value of the
unmappedrecord component
-
mapped
Returns the value of themappedrecord component.- Returns:
- the value of the
mappedrecord component
-
identity
public boolean identity()Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-