public class Preconditions extends java.lang.Object implements XdrElement
union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; };
Modifier and Type | Class and Description |
---|---|
static class |
Preconditions.PreconditionsBuilder |
Constructor and Description |
---|
Preconditions() |
Preconditions(PreconditionType discriminant,
TimeBounds timeBounds,
PreconditionsV2 v2) |
Modifier and Type | Method and Description |
---|---|
static Preconditions.PreconditionsBuilder |
builder() |
static Preconditions |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static Preconditions |
fromXdrBase64(java.lang.String xdr) |
static Preconditions |
fromXdrByteArray(byte[] xdr) |
PreconditionType |
getDiscriminant() |
TimeBounds |
getTimeBounds() |
PreconditionsV2 |
getV2() |
int |
hashCode() |
void |
setDiscriminant(PreconditionType discriminant) |
void |
setTimeBounds(TimeBounds timeBounds) |
void |
setV2(PreconditionsV2 v2) |
Preconditions.PreconditionsBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public Preconditions()
public Preconditions(PreconditionType discriminant, TimeBounds timeBounds, PreconditionsV2 v2)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Preconditions decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Preconditions fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Preconditions fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Preconditions.PreconditionsBuilder builder()
public Preconditions.PreconditionsBuilder toBuilder()
public PreconditionType getDiscriminant()
public TimeBounds getTimeBounds()
public PreconditionsV2 getV2()
public void setDiscriminant(PreconditionType discriminant)
public void setTimeBounds(TimeBounds timeBounds)
public void setV2(PreconditionsV2 v2)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object