Class SerializableFileTime

  • All Implemented Interfaces:
    java.io.Serializable

    class SerializableFileTime
    extends java.lang.Object
    implements java.io.Serializable
    Wraps a FileTime and allows it to be Serializable.

    Deprecating Serialization

    Serialization is deprecated and will be removed in 3.0.

    • Constructor Summary

      Constructors 
      Constructor Description
      SerializableFileTime​(java.nio.file.attribute.FileTime fileTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.nio.file.attribute.FileTime other)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      private void readObject​(java.io.ObjectInputStream ois)  
      (package private) long to​(java.util.concurrent.TimeUnit unit)  
      (package private) java.time.Instant toInstant()  
      (package private) long toMillis()  
      java.lang.String toString()  
      (package private) java.nio.file.attribute.FileTime unwrap()  
      private void writeObject​(java.io.ObjectOutputStream oos)  
      • Methods inherited from class java.lang.Object

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

      • SerializableFileTime

        public SerializableFileTime​(java.nio.file.attribute.FileTime fileTime)
    • Method Detail

      • compareTo

        public int compareTo​(java.nio.file.attribute.FileTime other)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • readObject

        private void readObject​(java.io.ObjectInputStream ois)
                         throws java.lang.ClassNotFoundException,
                                java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.IOException
      • to

        long to​(java.util.concurrent.TimeUnit unit)
      • toInstant

        java.time.Instant toInstant()
      • toMillis

        long toMillis()
      • toString

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

        java.nio.file.attribute.FileTime unwrap()
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream oos)
                          throws java.io.IOException
        Throws:
        java.io.IOException