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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Price.PriceBuilder
builder()
static Price
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Price
fromXdrBase64
(String xdr) static Price
fromXdrByteArray
(byte[] xdr) getD()
getN()
int
hashCode()
void
void
toString()
default String
default 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
-