Class CopyContext<T>

Object
CopyContext<T>
Type Parameters:
T - shared-state type

public final class CopyContext<T> extends Object
Context parameters when copying many files from a source directory to a destination directory.
Author:
Owen Feehan
  • Constructor Details

    • CopyContext

      public CopyContext(Path sourceDirectory, Path destinationDirectory, T sharedState)
      Creates a new CopyContext instance.
      Parameters:
      sourceDirectory - Source directory of copying.
      destinationDirectory - Destination directory for copying.
      sharedState - State shared across all inputs when copying.
  • Method Details

    • getSourceDirectory

      public Path getSourceDirectory()
      Source directory of copying.
    • getDestinationDirectory

      public Path getDestinationDirectory()
      Destination directory for copying.
    • getSharedState

      public T getSharedState()
      State shared across all inputs when copying.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object