Class AttributeService.SimpleFileAttribute<T>

  • All Implemented Interfaces:
    java.nio.file.attribute.FileAttribute<T>
    Enclosing class:
    AttributeService

    private static final class AttributeService.SimpleFileAttribute<T>
    extends java.lang.Object
    implements java.nio.file.attribute.FileAttribute<T>
    Simple implementation of FileAttribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleFileAttribute​(java.lang.String name, T value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()  
      T value()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • value

        private final T value
    • Constructor Detail

      • SimpleFileAttribute

        SimpleFileAttribute​(java.lang.String name,
                            T value)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface java.nio.file.attribute.FileAttribute<T>
      • value

        public T value()
        Specified by:
        value in interface java.nio.file.attribute.FileAttribute<T>