Class Int256Parts

java.lang.Object
org.stellar.sdk.xdr.Int256Parts
All Implemented Interfaces:
XdrElement

public class Int256Parts extends Object implements XdrElement
Int256Parts's original definition in the XDR file is:
 struct Int256Parts {
     int64 hi_hi;
     uint64 hi_lo;
     uint64 lo_hi;
     uint64 lo_lo;
 };
 
  • Constructor Details

    • Int256Parts

      public Int256Parts()
    • Int256Parts

      public Int256Parts(Int64 hi_hi, Uint64 hi_lo, Uint64 lo_hi, Uint64 lo_lo)
      Creates a new Int256Parts instance.
      Parameters:
      hi_hi - the hi_hi field value
      hi_lo - the hi_lo field value
      lo_hi - the lo_hi field value
      lo_lo - the lo_lo field value
  • Method Details

    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Description copied from interface: XdrElement
      Encodes this value to XDR and writes it to the provided stream.
      Specified by:
      encode in interface XdrElement
      Parameters:
      stream - the destination XDR output stream
      Throws:
      IOException - if an I/O error occurs while writing the value
    • decode

      public static Int256Parts decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      public static Int256Parts decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static Int256Parts fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static Int256Parts fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toJson

      public String toJson()
      Description copied from interface: XdrElement
      Serializes this value to JSON.
      Specified by:
      toJson in interface XdrElement
      Returns:
      the JSON representation of this value
    • fromJson

      public static Int256Parts fromJson(String json)
    • builder

      public static Int256Parts.Int256PartsBuilder builder()
    • toBuilder

      public Int256Parts.Int256PartsBuilder toBuilder()
    • getHi_hi

      public Int64 getHi_hi()
      Value of the hi_hi field.
      Returns:
      the hi_hi field value
    • getHi_lo

      public Uint64 getHi_lo()
      Value of the hi_lo field.
      Returns:
      the hi_lo field value
    • getLo_hi

      public Uint64 getLo_hi()
      Value of the lo_hi field.
      Returns:
      the lo_hi field value
    • getLo_lo

      public Uint64 getLo_lo()
      Value of the lo_lo field.
      Returns:
      the lo_lo field value
    • setHi_hi

      public void setHi_hi(Int64 hi_hi)
      Value of the hi_hi field.
      Parameters:
      hi_hi - the hi_hi field value
    • setHi_lo

      public void setHi_lo(Uint64 hi_lo)
      Value of the hi_lo field.
      Parameters:
      hi_lo - the hi_lo field value
    • setLo_hi

      public void setLo_hi(Uint64 lo_hi)
      Value of the lo_hi field.
      Parameters:
      lo_hi - the lo_hi field value
    • setLo_lo

      public void setLo_lo(Uint64 lo_lo)
      Value of the lo_lo field.
      Parameters:
      lo_lo - the lo_lo field value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object