Package org.stellar.sdk
Class Predicate.AbsBefore
java.lang.Object
org.stellar.sdk.Predicate
org.stellar.sdk.Predicate.AbsBefore
- Enclosing class:
Predicate
Represents a predicate based on a maximum absolute timestamp.
-
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
ConstructorDescriptionAbsBefore
(long epochSeconds) AbsBefore
(BigInteger epochSeconds) Creates a newAbsBefore
instance. -
Method Summary
-
Constructor Details
-
AbsBefore
public AbsBefore(long epochSeconds) -
AbsBefore
-
AbsBefore
Creates a newAbsBefore
instance.- Parameters:
timePoint
- The maximum absolute timestamp in seconds.
-
-
Method Details
-
getTimestampSeconds
Gets the predicate timestamp in seconds.- Returns:
- the predicate timestamp in seconds
-
getDate
Gets the java date representation of a Predicate. If the Predicate specifies an epoch larger than 31556889864403199, it will coerce toInstant.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
Description copied from class:Predicate
Generates XDR object from a given Predicate object. -
equals
-
hashCode
public int hashCode()
-