Class Posting

java.lang.Object
dev.vality.damsel.accounter.Posting
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Posting>, org.apache.thrift.TBase<Posting,​Posting._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-10-25")
public class Posting
extends Object
implements org.apache.thrift.TBase<Posting,​Posting._Fields>, Serializable, Cloneable, Comparable<Posting>
See Also:
Serialized Form
  • Field Details

    • from_id

      public long from_id
    • to_id

      public long to_id
    • amount

      public long amount
    • currency_sym_code

      public String currency_sym_code
    • description

      public String description
    • metaDataMap

      public static final Map<Posting._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • Posting

      public Posting()
    • Posting

      public Posting​(long from_id, long to_id, long amount, String currency_sym_code, String description)
    • Posting

      public Posting​(Posting other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public Posting deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • getFromId

      public long getFromId()
    • setFromId

      public Posting setFromId​(long from_id)
    • unsetFromId

      public void unsetFromId()
    • isSetFromId

      public boolean isSetFromId()
      Returns true if field from_id is set (has been assigned a value) and false otherwise
    • setFromIdIsSet

      public void setFromIdIsSet​(boolean value)
    • getToId

      public long getToId()
    • setToId

      public Posting setToId​(long to_id)
    • unsetToId

      public void unsetToId()
    • isSetToId

      public boolean isSetToId()
      Returns true if field to_id is set (has been assigned a value) and false otherwise
    • setToIdIsSet

      public void setToIdIsSet​(boolean value)
    • getAmount

      public long getAmount()
    • setAmount

      public Posting setAmount​(long amount)
    • unsetAmount

      public void unsetAmount()
    • isSetAmount

      public boolean isSetAmount()
      Returns true if field amount is set (has been assigned a value) and false otherwise
    • setAmountIsSet

      public void setAmountIsSet​(boolean value)
    • getCurrencySymCode

      public String getCurrencySymCode()
    • setCurrencySymCode

      public Posting setCurrencySymCode​(String currency_sym_code)
    • unsetCurrencySymCode

      public void unsetCurrencySymCode()
    • isSetCurrencySymCode

      public boolean isSetCurrencySymCode()
      Returns true if field currency_sym_code is set (has been assigned a value) and false otherwise
    • setCurrencySymCodeIsSet

      public void setCurrencySymCodeIsSet​(boolean value)
    • getDescription

      public String getDescription()
    • setDescription

      public Posting setDescription​(String description)
    • unsetDescription

      public void unsetDescription()
    • isSetDescription

      public boolean isSetDescription()
      Returns true if field description is set (has been assigned a value) and false otherwise
    • setDescriptionIsSet

      public void setDescriptionIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(Posting._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • getFieldValue

      public Object getFieldValue​(Posting._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • isSet

      public boolean isSet​(Posting._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(Posting that)
    • hashCode

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

      public int compareTo​(Posting other)
      Specified by:
      compareTo in interface Comparable<Posting>
    • fieldForId

      public Posting._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • getFields

      public Posting._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • getFieldMetaData

      public Map<Posting._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<Posting,​Posting._Fields>
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException