Package org.stellar.sdk.xdr
Class Price
java.lang.Object
org.stellar.sdk.xdr.Price
Price's original definition in the XDR file is:
struct Price
{
int32 n; // numerator
int32 d; // denominator
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Price.PriceBuilderbuilder()static Pricedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PricefromXdrBase64(String xdr) static PricefromXdrByteArray(byte[] xdr) getD()getN()inthashCode()voidvoidtoString()default Stringdefault byte[]
-
Constructor Details
-
Price
public Price() -
Price
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getN
-
getD
-
setN
-
setD
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-