java.lang.Object
java.lang.Record
com.github.sormuras.bach.Grabber
A grabber helps loading, updating, and verifying external assets.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Links a local file via its path name to a (remote) resource identifier.static final record
Links anGrabber.Asset
list to a directory name within a parent directory. -
Constructor Summary
ConstructorDescriptionGrabber
(Bach bach, ExternalModuleLocators locators) Creates an instance of aGrabber
record class. -
Method Summary
Modifier and TypeMethodDescriptionbach()
Returns the value of thebach
record component.final boolean
Indicates whether some other object is "equal to" this one.void
grab
(Grabber.Directory... directories) void
grab
(Path directory, Grabber.Asset asset) void
grabExternalModules
(Iterable<String> modules) void
grabExternalModules
(String... modules) void
final int
hashCode()
Returns a hash code value for this object.locators()
Returns the value of thelocators
record component.newExternalToolLayerDirectory
(String name, Grabber.Asset... assets) newExternalToolProgramDirectory
(String name, Grabber.Asset... assets) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Grabber
Creates an instance of aGrabber
record class.- Parameters:
bach
- the value for thebach
record componentlocators
- the value for thelocators
record component
-
-
Method Details
-
newExternalToolLayerDirectory
-
newExternalToolProgramDirectory
-
grab
-
grab
-
grabExternalModules
-
grabExternalModules
-
grabMissingExternalModules
-
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
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)
. -
bach
Returns the value of thebach
record component.- Returns:
- the value of the
bach
record component
-
locators
Returns the value of thelocators
record component.- Returns:
- the value of the
locators
record component
-