java.lang.Object
java.lang.Record
org.jpo.eventbus.CopyToDirRequest
- Record Components:
nodes
- The nodes for which the user would like copy the picturestargetDirectory
- The target directory. It must exist and it must be writable.
public record CopyToDirRequest(@NonNull Collection<SortableDefaultMutableTreeNode> nodes, @NonNull File targetDirectory)
extends Record
Request to indicate that the user would like to copy the pictures in the
selected nodes to a target directory
-
Constructor Summary
ConstructorDescriptionCopyToDirRequest
(@NonNull Collection<SortableDefaultMutableTreeNode> nodes, @NonNull File targetDirectory) Constructor to validate the that target Directory is writable and that it is a directory -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NonNull Collection<SortableDefaultMutableTreeNode>
nodes()
Returns the value of thenodes
record component.@NonNull File
Returns the value of thetargetDirectory
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CopyToDirRequest
public CopyToDirRequest(@NonNull Collection<SortableDefaultMutableTreeNode> nodes, @NonNull File targetDirectory) Constructor to validate the that target Directory is writable and that it is a directory- Parameters:
nodes
- The nodes to copytargetDirectory
- the target directory to copy to
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
nodes
Returns the value of thenodes
record component.- Returns:
- the value of the
nodes
record component
-
targetDirectory
Returns the value of thetargetDirectory
record component.- Returns:
- the value of the
targetDirectory
record component
-