Module org.jpo

Record Class PictureAdderRequest

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 object
chosenFiles - The array of Files to add
newOnly - indicates whether to check if the picture is already in the collection
recurseDirectories - 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 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 a PictureAdderRequest record class.
      Parameters:
      receivingNode - the value for the receivingNode record component
      chosenFiles - the value for the chosenFiles record component
      newOnly - the value for the newOnly record component
      recurseDirectories - the value for the recurseDirectories record component
      retainDirectories - the value for the retainDirectories record component
      selectedCategories - the value for the selectedCategories record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • receivingNode

      @NotNull public @NotNull SortableDefaultMutableTreeNode receivingNode()
      Returns the value of the receivingNode record component.
      Returns:
      the value of the receivingNode record component
    • chosenFiles

      @NotNull public @NotNull File[] chosenFiles()
      Returns the value of the chosenFiles record component.
      Returns:
      the value of the chosenFiles record component
    • newOnly

      public boolean newOnly()
      Returns the value of the newOnly record component.
      Returns:
      the value of the newOnly record component
    • recurseDirectories

      public boolean recurseDirectories()
      Returns the value of the recurseDirectories record component.
      Returns:
      the value of the recurseDirectories record component
    • retainDirectories

      public boolean retainDirectories()
      Returns the value of the retainDirectories record component.
      Returns:
      the value of the retainDirectories record component
    • selectedCategories

      @NotNull public @NotNull Collection<Integer> selectedCategories()
      Returns the value of the selectedCategories record component.
      Returns:
      the value of the selectedCategories record component