TimeBounds class
TimeBounds represents the time interval that a transaction is valid.
Constructors
- TimeBounds(int minTime, int maxTime)
-
Constructor
minTime
andmaxTime
are 64bit Unix timestamps.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXdr(
) → XdrTimeBounds - Creates a XdrTimeBounds object from this time bounds.
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override
Static Methods
-
expiresAfter(
int timeout) → TimeBounds -
A factory method that sets maxTime to the specified
timeout
second from now.timeout
in seconds. -
fromXdr(
XdrTimeBounds timeBounds) → TimeBounds -
Creates a TimeBounds instance from a
timeBounds
XdrTimeBounds object.