public abstract class Window extends Object
| Constructor and Description |
|---|
Window(long start,
long end)
Create a new window for the given start time (inclusive) and end time (exclusive).
|
| Modifier and Type | Method and Description |
|---|---|
long |
end()
Return the end timestamp of this window, exclusive
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
overlap(Window other)
Check if the given window overlaps with this window.
|
long |
start()
Return the start timestamp of this window, inclusive
|
public Window(long start,
long end)
start - the start timestamp of the window (inclusive)end - the end timestamp of the window (exclusive)public long start()
public long end()
public boolean overlap(Window other)
other - another windowtrue if other overlaps with this window—false otherwise