Package codechicken.mixin.util
Record Class FieldMixin
java.lang.Object
java.lang.Record
codechicken.mixin.util.FieldMixin
Created by covers1624 on 2/11/20.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldMixin(String name, String desc, int access) Creates an instance of aFieldMixinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccess()Returns the value of theaccessrecord component.desc()Returns the value of thedescrecord component.final booleanIndicates whether some other object is "equal to" this one.getAccessName(String owner) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldMixin
Creates an instance of aFieldMixinrecord class.- Parameters:
name- the value for thenamerecord componentdesc- the value for thedescrecord componentaccess- the value for theaccessrecord component
-
-
Method Details
-
getAccessName
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
desc
Returns the value of thedescrecord component.- Returns:
- the value of the
descrecord component
-
access
public int access()Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-