public class TimestampRange
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
com.google.cloud.Timestamp |
getFrom()
Returns the range start timestamp (inclusive).
|
com.google.cloud.Timestamp |
getTo()
Returns the range end timestamp (exclusive).
|
int |
hashCode() |
static TimestampRange |
of(com.google.cloud.Timestamp from,
com.google.cloud.Timestamp to)
Constructs a timestamp range.
|
java.lang.String |
toString() |
public static TimestampRange of(com.google.cloud.Timestamp from, com.google.cloud.Timestamp to)
to
must be greater or equal to the timestamp from
, otherwise an
IllegalArgumentException
will be thrown.public com.google.cloud.Timestamp getFrom()
public com.google.cloud.Timestamp getTo()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object