public class TimestampValue<T> extends Object
Constructor and Description |
---|
TimestampValue() |
TimestampValue(Long time,
T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getTime() |
T |
getValue() |
int |
hashCode() |
<E> TimestampValue<E> |
map(Function<T,E> mapping)
映射
|
static <T> TimestampValue<T> |
of(Long time,
T value) |
Optional<T> |
optional() |
void |
setTime(Long time) |
void |
setValue(T value) |
String |
toString() |
public static <T> TimestampValue<T> of(Long time, T value)
public Long getTime()
public void setTime(Long time)
public T getValue()
public void setValue(T value)
public <E> TimestampValue<E> map(Function<T,E> mapping)
E
- Emapping
- mappingCopyright © 2024. All rights reserved.