public class Price extends java.lang.Object implements XdrElement
struct Price { int32 n; // numerator int32 d; // denominator };
Modifier and Type | Class and Description |
---|---|
static class |
Price.PriceBuilder |
Modifier and Type | Method and Description |
---|---|
static Price.PriceBuilder |
builder() |
static Price |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static Price |
fromXdrBase64(java.lang.String xdr) |
static Price |
fromXdrByteArray(byte[] xdr) |
Int32 |
getD() |
Int32 |
getN() |
int |
hashCode() |
void |
setD(Int32 d) |
void |
setN(Int32 n) |
Price.PriceBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Price decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Price fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Price fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Price.PriceBuilder builder()
public Price.PriceBuilder toBuilder()
public Int32 getN()
public Int32 getD()
public void setN(Int32 n)
public void setD(Int32 d)
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