Record Class CachedJarProcessor.FullWorkJob

java.lang.Object
java.lang.Record
net.fabricmc.loom.decompilers.cache.CachedJarProcessor.FullWorkJob
Record Components:
incomplete - A path to jar file containing all the classes to be processed
output - A path to a temporary jar where work output should be written to
outputNameMap - A map of sources name to hash
All Implemented Interfaces:
CachedJarProcessor.WorkJob, CachedJarProcessor.WorkToDoJob
Enclosing class:
CachedJarProcessor

public static record CachedJarProcessor.FullWorkJob(Path incomplete, Path output, Map<String,String> outputNameMap) extends Record implements CachedJarProcessor.WorkToDoJob
The full jar must be processed.
  • Constructor Details

    • FullWorkJob

      public FullWorkJob(Path incomplete, Path output, Map<String,String> outputNameMap)
      Creates an instance of a FullWorkJob record class.
      Parameters:
      incomplete - the value for the incomplete record component
      output - the value for the output record component
      outputNameMap - the value for the outputNameMap record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • incomplete

      public Path incomplete()
      Returns the value of the incomplete record component.
      Specified by:
      incomplete in interface CachedJarProcessor.WorkToDoJob
      Returns:
      the value of the incomplete record component
    • output

      public Path output()
      Returns the value of the output record component.
      Specified by:
      output in interface CachedJarProcessor.WorkToDoJob
      Returns:
      the value of the output record component
    • outputNameMap

      public Map<String,String> outputNameMap()
      Returns the value of the outputNameMap record component.
      Specified by:
      outputNameMap in interface CachedJarProcessor.WorkToDoJob
      Returns:
      the value of the outputNameMap record component