Record Class DecompilationMetadata
java.lang.Object
java.lang.Record
net.fabricmc.loom.api.decompilers.DecompilationMetadata
public record DecompilationMetadata(int numberOfThreads, Path javaDocs, Collection<Path> libraries, IOStringConsumer logger, Map<String,String> options)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDecompilationMetadata(int numberOfThreads, Path javaDocs, Collection<Path> libraries, IOStringConsumer logger, Map<String,String> options)Creates an instance of aDecompilationMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.javaDocs()Returns the value of thejavaDocsrecord component.Returns the value of thelibrariesrecord component.logger()Returns the value of theloggerrecord component.intReturns the value of thenumberOfThreadsrecord component.options()Returns the value of theoptionsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
DecompilationMetadata
public DecompilationMetadata(int numberOfThreads, Path javaDocs, Collection<Path> libraries, IOStringConsumer logger, Map<String,String> options)Creates an instance of aDecompilationMetadatarecord class.- Parameters:
numberOfThreads- the value for thenumberOfThreadsrecord componentjavaDocs- the value for thejavaDocsrecord componentlibraries- the value for thelibrariesrecord componentlogger- the value for theloggerrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
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 '=='. -
numberOfThreads
public int numberOfThreads()Returns the value of thenumberOfThreadsrecord component.- Returns:
- the value of the
numberOfThreadsrecord component
-
javaDocs
Returns the value of thejavaDocsrecord component.- Returns:
- the value of the
javaDocsrecord component
-
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-
logger
Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-