Class Predicate.AbsBefore

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

public static class Predicate.AbsBefore extends Predicate
Represents a predicate based on a maximum absolute timestamp.
  • Constructor Details

    • AbsBefore

      public AbsBefore(long epochSeconds)
    • AbsBefore

      public AbsBefore(BigInteger epochSeconds)
    • AbsBefore

      public AbsBefore(TimePoint timePoint)
      Creates a new AbsBefore instance.
      Parameters:
      timePoint - The maximum absolute timestamp in seconds.
  • Method Details

    • getTimestampSeconds

      public BigInteger getTimestampSeconds()
      Gets the predicate timestamp in seconds.
      Returns:
      the predicate timestamp in seconds
    • getDate

      public Instant getDate()
      Gets the java date representation of a Predicate. If the Predicate specifies an epoch larger than 31556889864403199, it will coerce to Instant.MAX instead as no greater value can be represented.

      If you want to get the real epoch, use getTimestampSeconds() instead.

      Returns:
      Instant the java date representation of the predicate
    • 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