Package org.stellar.sdk
Class Predicate.RelBefore
java.lang.Object
org.stellar.sdk.Predicate
org.stellar.sdk.Predicate.RelBefore
- Enclosing class:
Predicate
Represents a predicate based on a relative time offset from the close time of the ledger in
which the
CreateClaimableBalanceOperation
is included.-
Nested Class Summary
Nested classes/interfaces inherited from class org.stellar.sdk.Predicate
Predicate.AbsBefore, Predicate.And, Predicate.Not, Predicate.Or, Predicate.RelBefore, Predicate.Unconditional
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RelBefore
public RelBefore(long secondsSinceClose) Creates a new predicate based on a relative time offset from the close time of the ledger.- Parameters:
secondsSinceClose
- the relative time offset in seconds from the close time of the ledger
-
RelBefore
Creates a newRelBefore
instance.- Parameters:
duration
- The relative time offset in seconds from the close time of the ledger.
-
-
Method Details
-
getSecondsSinceClose
public long getSecondsSinceClose()Gets the relative time offset in seconds.- Returns:
- the relative time offset in seconds
-
toXdr
Description copied from class:Predicate
Generates XDR object from a given Predicate object. -
equals
-
hashCode
public int hashCode()
-