java.lang.Object
java.lang.Record
org.jpo.eventbus.PictureAdderRequest
- Record Components:
receivingNode
- The node on which to add the pictures. It must be a node with a GroupInfo objectchosenFiles
- The array of Files to addnewOnly
- indicates whether to check if the picture is already in the collectionrecurseDirectories
- indicates whether to scan down into directories for more pictures.retainDirectories
- indicates whether to preserve the directory structure.selectedCategories
- The categories to give the pictures
public record PictureAdderRequest(@NotNull SortableDefaultMutableTreeNode receivingNode, @NotNull File[] chosenFiles, boolean newOnly, boolean recurseDirectories, boolean retainDirectories, @NotNull Collection<Integer> selectedCategories)
extends Record
This request holds the details about pictures to be added
-
Constructor Summary
ConstructorDescriptionPictureAdderRequest
(@NotNull SortableDefaultMutableTreeNode receivingNode, @NotNull File[] chosenFiles, boolean newOnly, boolean recurseDirectories, boolean retainDirectories, @NotNull Collection<Integer> selectedCategories) Creates an instance of aPictureAdderRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull File[]
Returns the value of thechosenFiles
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.boolean
newOnly()
Returns the value of thenewOnly
record component.@NotNull SortableDefaultMutableTreeNode
Returns the value of thereceivingNode
record component.boolean
Returns the value of therecurseDirectories
record component.boolean
Returns the value of theretainDirectories
record component.@NotNull Collection<Integer>
Returns the value of theselectedCategories
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PictureAdderRequest
public PictureAdderRequest(@NotNull @NotNull SortableDefaultMutableTreeNode receivingNode, @NotNull @NotNull File[] chosenFiles, boolean newOnly, boolean recurseDirectories, boolean retainDirectories, @NotNull @NotNull Collection<Integer> selectedCategories) Creates an instance of aPictureAdderRequest
record class.- Parameters:
receivingNode
- the value for thereceivingNode
record componentchosenFiles
- the value for thechosenFiles
record componentnewOnly
- the value for thenewOnly
record componentrecurseDirectories
- the value for therecurseDirectories
record componentretainDirectories
- the value for theretainDirectories
record componentselectedCategories
- the value for theselectedCategories
record 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 '=='. -
receivingNode
Returns the value of thereceivingNode
record component.- Returns:
- the value of the
receivingNode
record component
-
chosenFiles
Returns the value of thechosenFiles
record component.- Returns:
- the value of the
chosenFiles
record component
-
newOnly
public boolean newOnly()Returns the value of thenewOnly
record component.- Returns:
- the value of the
newOnly
record component
-
recurseDirectories
public boolean recurseDirectories()Returns the value of therecurseDirectories
record component.- Returns:
- the value of the
recurseDirectories
record component
-
retainDirectories
public boolean retainDirectories()Returns the value of theretainDirectories
record component.- Returns:
- the value of the
retainDirectories
record component
-
selectedCategories
Returns the value of theselectedCategories
record component.- Returns:
- the value of the
selectedCategories
record component
-