Class PathWithAttributes


  • public class PathWithAttributes
    extends java.lang.Object
    Tuple of a Path and BasicFileAttributes, used for sorting.
    • Constructor Summary

      Constructors 
      Constructor Description
      PathWithAttributes​(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.attribute.BasicFileAttributes getAttributes()
      Returns the attributes.
      java.nio.file.Path getPath()
      Returns the path.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PathWithAttributes

        public PathWithAttributes​(java.nio.file.Path path,
                                  java.nio.file.attribute.BasicFileAttributes attributes)
    • Method Detail

      • toString

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

        public java.nio.file.Path getPath()
        Returns the path.
        Returns:
        the path
      • getAttributes

        public java.nio.file.attribute.BasicFileAttributes getAttributes()
        Returns the attributes.
        Returns:
        the attributes