Class SimpleFileAttribute<T>
- java.lang.Object
-
- com.github.robtimus.filesystems.attribute.SimpleFileAttribute<T>
-
- Type Parameters:
T
- The type of the file attribute value.
- All Implemented Interfaces:
FileAttribute<T>
public class SimpleFileAttribute<T> extends Object implements FileAttribute<T>
A simple file attribute implementation.- Author:
- Rob Spoor
-
-
Constructor Summary
Constructors Constructor Description SimpleFileAttribute(String name, T value)
Creates a new file attribute.
-
-
-
Constructor Detail
-
SimpleFileAttribute
public SimpleFileAttribute(String name, T value)
Creates a new file attribute.- Parameters:
name
- The attribute name.value
- The attribute value.- Throws:
NullPointerException
- If the name or value isnull
.
-
-
Method Detail
-
name
public String name()
- Specified by:
name
in interfaceFileAttribute<T>
-
value
public T value()
- Specified by:
value
in interfaceFileAttribute<T>
-
-