java.lang.Object
java.lang.Record
com.github.sormuras.bach.Grabber.Directory
- Enclosing class:
- Grabber
public static record Grabber.Directory(Path parent, String name, List<Grabber.Asset> assets)
extends Record
Links an
Grabber.Asset
list to a directory name within a parent directory.-
Constructor Summary
ConstructorDescriptionDirectory
(Path parent, String name, List<Grabber.Asset> assets) Creates an instance of aDirectory
record class. -
Method Summary
Modifier and TypeMethodDescriptionassets()
Returns the value of theassets
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Directory
Creates an instance of aDirectory
record class.- Parameters:
parent
- the value for theparent
record componentname
- the value for thename
record componentassets
- the value for theassets
record component
-
-
Method Details
-
withAsset
-
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)
. -
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
assets
Returns the value of theassets
record component.- Returns:
- the value of the
assets
record component
-