org.apache.commons.io.monitor

## Class SerializableFileTime

- java.lang.Object
- - org.apache.commons.io.monitor.SerializableFileTime

- All Implemented Interfaces:
    Serializable

      final class SerializableFileTime
      extends Object
      implements Serializable

  Wraps a `FileTime` and allows it to be Serializable.

  ## Deprecating Serialization

  Serialization is deprecated and will be removed in 3.0.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static SerializableFileTime` | `EPOCH`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SerializableFileTime(FileTime fileTime)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(FileTime other)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `(package private) long` | `to(TimeUnit unit)`
    `(package private) java.time.Instant` | `toInstant()`
    `(package private) long` | `toMillis()`
    `String` | `toString()`
    `(package private) FileTime` | `unwrap()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### EPOCH

          static final SerializableFileTime EPOCH

  - ### Constructor Detail

    - #### SerializableFileTime

          SerializableFileTime(FileTime fileTime)

  - ### Method Detail

    - #### compareTo

          public int compareTo(FileTime other)

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### to

          long to(TimeUnit unit)

    - #### toInstant

          java.time.Instant toInstant()

    - #### toMillis

          long toMillis()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### unwrap

          FileTime unwrap()