Class Predicate.RelBefore

java.lang.Object
org.stellar.sdk.Predicate
org.stellar.sdk.Predicate.RelBefore
Enclosing class:
Predicate

public static class Predicate.RelBefore extends Predicate
Represents a predicate based on a relative time offset from the close time of the ledger in which the CreateClaimableBalanceOperation is included.
  • 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

      public RelBefore(Duration duration)
  • Method Details

    • getSecondsSinceClose

      public long getSecondsSinceClose()
      Gets the relative time offset in seconds.
      Returns:
      the relative time offset in seconds
    • toXdr

      public ClaimPredicate toXdr()
      Description copied from class: Predicate
      Generates XDR object from a given Predicate object.
      Specified by:
      toXdr in class Predicate
      Returns:
      XDR object
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class Predicate
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object