public class PathWithAttributes
extends java.lang.Object
Path and BasicFileAttributes, used for sorting.| Modifier and Type | Field and Description |
|---|---|
private java.nio.file.attribute.BasicFileAttributes |
attributes |
private java.nio.file.Path |
path |
| Constructor and Description |
|---|
PathWithAttributes(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.attribute.BasicFileAttributes |
getAttributes()
Returns the attributes.
|
java.nio.file.Path |
getPath()
Returns the path.
|
java.lang.String |
toString() |
private final java.nio.file.Path path
private final java.nio.file.attribute.BasicFileAttributes attributes
public PathWithAttributes(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.nio.file.Path getPath()
public java.nio.file.attribute.BasicFileAttributes getAttributes()