T - type of the itempublic final class TimestampedItem<T> extends Object implements Serializable
| Constructor and Description |
|---|
TimestampedItem(long ignored,
long timestamp,
T item)
This constructor exists in order to match the shape of the functional
interface
WindowResultFunction. |
TimestampedItem(long timestamp,
T item)
Constructs a timestamped item with the supplied field values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
T |
item()
Returns the item.
|
long |
timestamp()
Returns the timestamp associated with the item.
|
String |
toString() |
public TimestampedItem(long timestamp,
@Nonnull
T item)
public TimestampedItem(long ignored,
long timestamp,
@Nonnull
T item)
WindowResultFunction.
Constructs a timestamped item with the supplied field values. Ignores the first argument.
public long timestamp()
public T item()
Copyright © 2018 Hazelcast, Inc.. All rights reserved.