Class DefaultTimestampStrategy
- java.lang.Object
-
- com.github.f4b6a3.ulid.strategy.timestamp.DefaultTimestampStrategy
-
- All Implemented Interfaces:
TimestampStrategy
public final class DefaultTimestampStrategy extends Object implements TimestampStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultTimestampStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTimestamp()Returns the count of milliseconds since 1970-01-01 (Unix epoch).
-
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
Returns the count of milliseconds since 1970-01-01 (Unix epoch).- Specified by:
getTimestampin interfaceTimestampStrategy
-
-