Package dev.vality.damsel.accounter
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPosting._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description longamountStringcurrency_sym_codeStringdescriptionlongfrom_idstatic Map<Posting._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongto_id -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(Posting other)PostingdeepCopy()booleanequals(Posting that)booleanequals(Object that)Posting._FieldsfieldForId(int fieldId)longgetAmount()StringgetCurrencySymCode()StringgetDescription()Map<Posting._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Posting._Fields[]getFields()ObjectgetFieldValue(Posting._Fields field)longgetFromId()longgetToId()inthashCode()booleanisSet(Posting._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAmount()Returns true if field amount is set (has been assigned a value) and false otherwisebooleanisSetCurrencySymCode()Returns true if field currency_sym_code is set (has been assigned a value) and false otherwisebooleanisSetDescription()Returns true if field description is set (has been assigned a value) and false otherwisebooleanisSetFromId()Returns true if field from_id is set (has been assigned a value) and false otherwisebooleanisSetToId()Returns true if field to_id is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)PostingsetAmount(long amount)voidsetAmountIsSet(boolean value)PostingsetCurrencySymCode(String currency_sym_code)voidsetCurrencySymCodeIsSet(boolean value)PostingsetDescription(String description)voidsetDescriptionIsSet(boolean value)voidsetFieldValue(Posting._Fields field, Object value)PostingsetFromId(long from_id)voidsetFromIdIsSet(boolean value)PostingsetToId(long to_id)voidsetToIdIsSet(boolean value)StringtoString()voidunsetAmount()voidunsetCurrencySymCode()voidunsetDescription()voidunsetFromId()voidunsetToId()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
from_id
public long from_id -
to_id
public long to_id -
amount
public long amount -
currency_sym_code
-
description
-
metaDataMap
-
-
Constructor Details
-
Posting
public Posting() -
Posting
-
Posting
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFromId
public long getFromId() -
setFromId
-
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
-
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
-
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
-
setCurrencySymCode
-
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
-
setDescription
-
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
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Posting>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-