public class DefaultTimestampProvider extends java.lang.Object implements TimestampProvider
Default implementation of TimestampProvider supports creating timestamps for any class that supports a constructor that accepts a Long or long value. "currentTimeMillis" can be overrided in subclasses (useful for testing purposes)
Type Params | Return Type | Name and description |
---|---|---|
<T> |
public T |
createTimestamp(java.lang.Class<T> dateTimeClass) |
|
protected long |
currentTimeMillis() |
|
public boolean |
supportsCreating(java.lang.Class<?> dateTimeClass) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |