Package codechicken.mixin.scala
Record Class ScalaSignature.SigEntry
java.lang.Object
java.lang.Record
codechicken.mixin.scala.ScalaSignature.SigEntry
- Enclosing class:
- ScalaSignature
public static record ScalaSignature.SigEntry(int index, int start, codechicken.mixin.scala.ScalaSignature.Bytes bytes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSigEntry(int index, int start, codechicken.mixin.scala.ScalaSignature.Bytes bytes) Creates an instance of aSigEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodechicken.mixin.scala.ScalaSignature.Bytesbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byteid()intindex()Returns the value of theindexrecord component.intstart()Returns the value of thestartrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SigEntry
public SigEntry(int index, int start, codechicken.mixin.scala.ScalaSignature.Bytes bytes) Creates an instance of aSigEntryrecord class.- Parameters:
index- the value for theindexrecord componentstart- the value for thestartrecord componentbytes- the value for thebytesrecord component
-
-
Method Details
-
id
public byte id() -
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 '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
start
public int start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
bytes
public codechicken.mixin.scala.ScalaSignature.Bytes bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-