public final class TimeBounds
extends java.lang.Object
The UNIX timestamp (in seconds), determined by ledger time, of a lower and upper bound of when this transaction will be valid. If a transaction is submitted too early or too late, it will fail to make it into the transaction set.
Transaction
Constructor and Description |
---|
TimeBounds(java.math.BigInteger minTime,
java.math.BigInteger maxTime) |
TimeBounds(long minTime,
long maxTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static TimeBounds |
expiresAfter(long timeout)
A factory method that sets maxTime to the specified second from now.
|
static TimeBounds |
fromXdr(TimeBounds timeBounds)
Construct a new
TimeBounds object from a TimeBounds XDR
object. |
java.math.BigInteger |
getMaxTime()
the UNIX timestamp (in seconds)
|
java.math.BigInteger |
getMinTime()
the UNIX timestamp (in seconds)
|
int |
hashCode() |
java.lang.String |
toString() |
TimeBounds |
toXdr() |
public TimeBounds(java.math.BigInteger minTime, java.math.BigInteger maxTime)
minTime
- 64-bit Unix timestampmaxTime
- 64-bit Unix timestamppublic TimeBounds(long minTime, long maxTime)
minTime
- 64-bit Unix timestampmaxTime
- 64-bit Unix timestamppublic static TimeBounds expiresAfter(long timeout)
timeout
- Timeout in seconds.public static TimeBounds fromXdr(TimeBounds timeBounds)
TimeBounds
object from a TimeBounds
XDR
object.timeBounds
- TimeBounds
XDR objectTimeBounds
objectpublic TimeBounds toXdr()
TimeBounds
XDR objectpublic java.math.BigInteger getMinTime()
public java.math.BigInteger getMaxTime()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object