Package org.stellar.sdk.xdr
Class TimeSlicedPeerDataList
java.lang.Object
org.stellar.sdk.xdr.TimeSlicedPeerDataList
- All Implemented Interfaces:
XdrElement
TimeSlicedPeerDataList's original definition in the XDR file is:
typedef TimeSlicedPeerData TimeSlicedPeerDataList<25>;
-
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTimeSlicedPeerDataList(TimeSlicedPeerData[] TimeSlicedPeerDataList) Creates a newTimeSlicedPeerDataListinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSlicedPeerDataListdecode(XdrDataInputStream stream) static TimeSlicedPeerDataListdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TimeSlicedPeerDataListstatic TimeSlicedPeerDataListfromXdrBase64(String xdr) static TimeSlicedPeerDataListfromXdrByteArray(byte[] xdr) Value of theTimeSlicedPeerDataListfield.inthashCode()voidsetTimeSlicedPeerDataList(TimeSlicedPeerData[] TimeSlicedPeerDataList) Value of theTimeSlicedPeerDataListfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TimeSlicedPeerDataList
public TimeSlicedPeerDataList() -
TimeSlicedPeerDataList
Creates a newTimeSlicedPeerDataListinstance.- Parameters:
TimeSlicedPeerDataList- theTimeSlicedPeerDataListfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static TimeSlicedPeerDataList decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
getTimeSlicedPeerDataList
Value of theTimeSlicedPeerDataListfield.- Returns:
- the
TimeSlicedPeerDataListfield value
-
setTimeSlicedPeerDataList
Value of theTimeSlicedPeerDataListfield.- Parameters:
TimeSlicedPeerDataList- theTimeSlicedPeerDataListfield value
-
equals
-
hashCode
public int hashCode() -
toString
-