Record Class ClassLineNumbers.Entry

java.lang.Object
java.lang.Record
net.fabricmc.loom.decompilers.ClassLineNumbers.Entry
Enclosing class:
ClassLineNumbers

public static record ClassLineNumbers.Entry(String className, int maxLine, int maxLineDest, Map<Integer,Integer> lineMap) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(String className, int maxLine, int maxLineDest, Map<Integer,Integer> lineMap)
    Creates an instance of a Entry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the className record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the lineMap record component.
    int
    Returns the value of the maxLine record component.
    int
    Returns the value of the maxLineDest record component.
    final String
    Returns a string representation of this record class.
    void
    write(Writer writer)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entry

      public Entry(String className, int maxLine, int maxLineDest, Map<Integer,Integer> lineMap)
      Creates an instance of a Entry record class.
      Parameters:
      className - the value for the className record component
      maxLine - the value for the maxLine record component
      maxLineDest - the value for the maxLineDest record component
      lineMap - the value for the lineMap record component
  • Method Details

    • write

      public void write(Writer writer) throws IOException
      Throws:
      IOException
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • maxLine

      public int maxLine()
      Returns the value of the maxLine record component.
      Returns:
      the value of the maxLine record component
    • maxLineDest

      public int maxLineDest()
      Returns the value of the maxLineDest record component.
      Returns:
      the value of the maxLineDest record component
    • lineMap

      public Map<Integer,Integer> lineMap()
      Returns the value of the lineMap record component.
      Returns:
      the value of the lineMap record component