Package net.fabricmc.loom.task
Record Class AbstractRunTask.LibraryFilter
java.lang.Object
java.lang.Record
net.fabricmc.loom.task.AbstractRunTask.LibraryFilter
- All Implemented Interfaces:
org.gradle.api.specs.Spec<File>
- Enclosing class:
AbstractRunTask
-
Constructor Summary
ConstructorsConstructorDescriptionLibraryFilter(List<String> excludedLibraryPaths, String configName) Creates an instance of aLibraryFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedLibraryPathsrecord component.final inthashCode()Returns a hash code value for this object.booleanisSatisfiedBy(File element) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LibraryFilter
Creates an instance of aLibraryFilterrecord class.- Parameters:
excludedLibraryPaths- the value for theexcludedLibraryPathsrecord componentconfigName- the value for theconfigNamerecord component
-
-
Method Details
-
isSatisfiedBy
- Specified by:
isSatisfiedByin interfaceorg.gradle.api.specs.Spec<File>
-
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). -
excludedLibraryPaths
Returns the value of theexcludedLibraryPathsrecord component.- Returns:
- the value of the
excludedLibraryPathsrecord component
-
configName
Returns the value of theconfigNamerecord component.- Returns:
- the value of the
configNamerecord component
-