Record Class CachedJarProcessor
java.lang.Object
java.lang.Record
net.fabricmc.loom.decompilers.cache.CachedJarProcessor
public record CachedJarProcessor(CachedFileStore<CachedData> fileStore, String baseHash)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNo work to be done, all restored from cache.static final recordThe full jar must be processed.static final recordSome work needs to be done.static interfacestatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionCachedJarProcessor(CachedFileStore<CachedData> fileStore, String baseHash) Creates an instance of aCachedJarProcessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseHash()Returns the value of thebaseHashrecord component.voidcompleteJob(Path output, CachedJarProcessor.WorkJob workJob, ClassLineNumbers lineNumbers) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileStorerecord component.final inthashCode()Returns a hash code value for this object.prepareJob(Path inputJar) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedJarProcessor
Creates an instance of aCachedJarProcessorrecord class.- Parameters:
fileStore- the value for thefileStorerecord componentbaseHash- the value for thebaseHashrecord component
-
-
Method Details
-
prepareJob
- Throws:
IOException
-
completeJob
public void completeJob(Path output, CachedJarProcessor.WorkJob workJob, ClassLineNumbers lineNumbers) throws IOException - Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
fileStore
Returns the value of thefileStorerecord component.- Returns:
- the value of the
fileStorerecord component
-
baseHash
Returns the value of thebaseHashrecord component.- Returns:
- the value of the
baseHashrecord component
-