Class AccountState
java.lang.Object
dev.vality.damsel.payment_processing.AccountState
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<AccountState>,org.apache.thrift.TBase<AccountState,AccountState._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-10-25")
public class AccountState
extends Object
implements org.apache.thrift.TBase<AccountState,AccountState._Fields>, Serializable, Cloneable, Comparable<AccountState>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountState._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description longaccount_idlongavailable_amountCurrencycurrencystatic Map<AccountState._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongown_amount -
Constructor Summary
Constructors Constructor Description AccountState()AccountState(long account_id, long own_amount, long available_amount, Currency currency)AccountState(AccountState other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(AccountState other)AccountStatedeepCopy()booleanequals(AccountState that)booleanequals(Object that)AccountState._FieldsfieldForId(int fieldId)longgetAccountId()longgetAvailableAmount()CurrencygetCurrency()Map<AccountState._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()AccountState._Fields[]getFields()ObjectgetFieldValue(AccountState._Fields field)longgetOwnAmount()inthashCode()booleanisSet(AccountState._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAccountId()Returns true if field account_id is set (has been assigned a value) and false otherwisebooleanisSetAvailableAmount()Returns true if field available_amount is set (has been assigned a value) and false otherwisebooleanisSetCurrency()Returns true if field currency is set (has been assigned a value) and false otherwisebooleanisSetOwnAmount()Returns true if field own_amount is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)AccountStatesetAccountId(long account_id)voidsetAccountIdIsSet(boolean value)AccountStatesetAvailableAmount(long available_amount)voidsetAvailableAmountIsSet(boolean value)AccountStatesetCurrency(Currency currency)voidsetCurrencyIsSet(boolean value)voidsetFieldValue(AccountState._Fields field, Object value)AccountStatesetOwnAmount(long own_amount)voidsetOwnAmountIsSet(boolean value)StringtoString()voidunsetAccountId()voidunsetAvailableAmount()voidunsetCurrency()voidunsetOwnAmount()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
account_id
public long account_id -
own_amount
public long own_amount -
available_amount
public long available_amount -
currency
-
metaDataMap
public static final Map<AccountState._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
AccountState
public AccountState() -
AccountState
-
AccountState
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<AccountState,AccountState._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<AccountState,AccountState._Fields>
-
getAccountId
public long getAccountId() -
setAccountId
-
unsetAccountId
public void unsetAccountId() -
isSetAccountId
public boolean isSetAccountId()Returns true if field account_id is set (has been assigned a value) and false otherwise -
setAccountIdIsSet
public void setAccountIdIsSet(boolean value) -
getOwnAmount
public long getOwnAmount() -
setOwnAmount
-
unsetOwnAmount
public void unsetOwnAmount() -
isSetOwnAmount
public boolean isSetOwnAmount()Returns true if field own_amount is set (has been assigned a value) and false otherwise -
setOwnAmountIsSet
public void setOwnAmountIsSet(boolean value) -
getAvailableAmount
public long getAvailableAmount() -
setAvailableAmount
-
unsetAvailableAmount
public void unsetAvailableAmount() -
isSetAvailableAmount
public boolean isSetAvailableAmount()Returns true if field available_amount is set (has been assigned a value) and false otherwise -
setAvailableAmountIsSet
public void setAvailableAmountIsSet(boolean value) -
getCurrency
-
setCurrency
-
unsetCurrency
public void unsetCurrency() -
isSetCurrency
public boolean isSetCurrency()Returns true if field currency is set (has been assigned a value) and false otherwise -
setCurrencyIsSet
public void setCurrencyIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<AccountState,AccountState._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<AccountState,AccountState._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<AccountState,AccountState._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<AccountState>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<AccountState,AccountState._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<AccountState,AccountState._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<AccountState,AccountState._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
-