Class DirectorySource

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      static DirectorySource from​(java.io.File directory)
      Create a new DirectorySource using the supplied directory.
      java.io.File getFile​()
      Get the source directory.
      java.net.URI getUri​()
      Get the URI for the source directory.
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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