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
ConstructorsConstructorDescriptionPictureAdderRequest(@NotNull SortableDefaultMutableTreeNode receivingNode, @NotNull File[] chosenFiles, boolean newOnly, boolean recurseDirectories, boolean retainDirectories, @NotNull Collection<Integer> selectedCategories) Creates an instance of aPictureAdderRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull File[]Returns the value of thechosenFilesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleannewOnly()Returns the value of thenewOnlyrecord component.@NotNull SortableDefaultMutableTreeNodeReturns the value of thereceivingNoderecord component.booleanReturns the value of therecurseDirectoriesrecord component.booleanReturns the value of theretainDirectoriesrecord component.@NotNull Collection<Integer>Returns the value of theselectedCategoriesrecord component.final StringtoString()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 aPictureAdderRequestrecord class.- Parameters:
receivingNode- the value for thereceivingNoderecord componentchosenFiles- the value for thechosenFilesrecord componentnewOnly- the value for thenewOnlyrecord componentrecurseDirectories- the value for therecurseDirectoriesrecord componentretainDirectories- the value for theretainDirectoriesrecord componentselectedCategories- the value for theselectedCategoriesrecord 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 thereceivingNoderecord component.- Returns:
- the value of the
receivingNoderecord component
-
chosenFiles
Returns the value of thechosenFilesrecord component.- Returns:
- the value of the
chosenFilesrecord component
-
newOnly
public boolean newOnly()Returns the value of thenewOnlyrecord component.- Returns:
- the value of the
newOnlyrecord component
-
recurseDirectories
public boolean recurseDirectories()Returns the value of therecurseDirectoriesrecord component.- Returns:
- the value of the
recurseDirectoriesrecord component
-
retainDirectories
public boolean retainDirectories()Returns the value of theretainDirectoriesrecord component.- Returns:
- the value of the
retainDirectoriesrecord component
-
selectedCategories
Returns the value of theselectedCategoriesrecord component.- Returns:
- the value of the
selectedCategoriesrecord component
-