Class DirectorySource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File directory  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DirectorySource​(java.io.File directory)  
    • Field Detail

      • directory

        private final java.io.File directory
    • Constructor Detail

      • DirectorySource

        private DirectorySource​(java.io.File directory)
    • Method Detail

      • from

        public static DirectorySource from​(java.io.File directory)
        Create a new DirectorySource using the supplied directory.
        Parameters:
        directory - the source directory; must not be null
      • getUri

        public final java.net.URI getUri()
        Get the URI for the source directory.
        Specified by:
        getUri in interface UriSource
        Returns:
        the source URI; never null
      • getFile

        public final java.io.File getFile()
        Get the source directory.
        Specified by:
        getFile in interface FileSystemSource
        Returns:
        the source directory; never null
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object