Class WorkingTreeModifiedEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Collection<java.lang.String> deleted  
      private java.util.Collection<java.lang.String> modified  
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkingTreeModifiedEvent​(java.util.Collection<java.lang.String> modified, java.util.Collection<java.lang.String> deleted)
      Creates a new WorkingTreeModifiedEvent with the given collections.
    • Field Detail

      • modified

        private java.util.Collection<java.lang.String> modified
      • deleted

        private java.util.Collection<java.lang.String> deleted
    • Constructor Detail

      • WorkingTreeModifiedEvent

        public WorkingTreeModifiedEvent​(java.util.Collection<java.lang.String> modified,
                                        java.util.Collection<java.lang.String> deleted)
        Creates a new WorkingTreeModifiedEvent with the given collections.
        Parameters:
        modified - repository-relative paths that were added or updated
        deleted - repository-relative paths that were deleted
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Determines whether there are any changes recorded in this event.
        Returns:
        true if no files were modified or deleted, false otherwise
      • getModified

        @NonNull
        public java.util.Collection<java.lang.String> getModified()
        Retrieves the Collection of repository-relative paths of files that were modified (added or updated).
        Returns:
        the set
      • getDeleted

        @NonNull
        public java.util.Collection<java.lang.String> getDeleted()
        Retrieves the Collection of repository-relative paths of files that were deleted.
        Returns:
        the set