T
- type of the itempublic final class TimestampedItem<T> extends Object implements Serializable
Constructor and Description |
---|
TimestampedItem(long timestamp,
T item)
Constructs a timestamped item with the supplied field values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static <V> TimestampedItem<V> |
fromWindowResult(long winStart,
long winEnd,
V value)
This method matches the shape of the functional interface
WindowResultFunction . |
int |
hashCode() |
T |
item()
Returns the item.
|
long |
timestamp()
Returns the timestamp associated with the item.
|
String |
toString() |
public long timestamp()
public T item()
public static <V> TimestampedItem<V> fromWindowResult(long winStart, long winEnd, @Nonnull V value)
WindowResultFunction
.
Constructs a TimestampedItem
using the window end time as the
timestamp.
Copyright © 2018 Hazelcast, Inc.. All rights reserved.