Package org.streamingpool.core.domain
Class Timestamped<T>
- java.lang.Object
-
- org.streamingpool.core.domain.Timestamped<T>
-
public class Timestamped<T> extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Timestamped<T>atOf(java.time.Instant instant, T value)booleanequals(java.lang.Object obj)inthashCode()java.time.Instantinstant()static <T> Timestamped<T>nowOf(T value)java.lang.StringtoString()Tvalue()
-
-
-
Method Detail
-
atOf
public static <T> Timestamped<T> atOf(java.time.Instant instant, T value)
-
nowOf
public static <T> Timestamped<T> nowOf(T value)
-
value
public T value()
-
instant
public java.time.Instant instant()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-