Package dev.vality.fistful.account
Class AccountBalance
java.lang.Object
dev.vality.fistful.account.AccountBalance
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<AccountBalance>,org.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-06-27")
public class AccountBalance
extends Object
implements org.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>, Serializable, Cloneable, Comparable<AccountBalance>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountBalance._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description CurrencyRefcurrencylongcurrentlongexpected_maxlongexpected_minStringidstatic Map<AccountBalance._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMap -
Constructor Summary
Constructors Constructor Description AccountBalance()AccountBalance(AccountBalance other)Performs a deep copy on other.AccountBalance(String id, CurrencyRef currency, long expected_min, long current, long expected_max) -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(AccountBalance other)AccountBalancedeepCopy()booleanequals(AccountBalance that)booleanequals(Object that)AccountBalance._FieldsfieldForId(int fieldId)CurrencyRefgetCurrency()longgetCurrent()longgetExpectedMax()longgetExpectedMin()Map<AccountBalance._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()AccountBalance._Fields[]getFields()ObjectgetFieldValue(AccountBalance._Fields field)StringgetId()inthashCode()booleanisSet(AccountBalance._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCurrency()Returns true if field currency is set (has been assigned a value) and false otherwisebooleanisSetCurrent()Returns true if field current is set (has been assigned a value) and false otherwisebooleanisSetExpectedMax()Returns true if field expected_max is set (has been assigned a value) and false otherwisebooleanisSetExpectedMin()Returns true if field expected_min is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)AccountBalancesetCurrency(CurrencyRef currency)voidsetCurrencyIsSet(boolean value)AccountBalancesetCurrent(long current)voidsetCurrentIsSet(boolean value)AccountBalancesetExpectedMax(long expected_max)voidsetExpectedMaxIsSet(boolean value)AccountBalancesetExpectedMin(long expected_min)voidsetExpectedMinIsSet(boolean value)voidsetFieldValue(AccountBalance._Fields field, Object value)AccountBalancesetId(String id)voidsetIdIsSet(boolean value)StringtoString()voidunsetCurrency()voidunsetCurrent()voidunsetExpectedMax()voidunsetExpectedMin()voidunsetId()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
currency
-
expected_min
public long expected_min -
current
public long current -
expected_max
public long expected_max -
metaDataMap
public static final Map<AccountBalance._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
AccountBalance
public AccountBalance() -
AccountBalance
public AccountBalance(String id, CurrencyRef currency, long expected_min, long current, long expected_max) -
AccountBalance
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>
-
getId
-
setId
-
unsetId
public void unsetId() -
isSetId
public boolean isSetId()Returns true if field id is set (has been assigned a value) and false otherwise -
setIdIsSet
public void setIdIsSet(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) -
getExpectedMin
public long getExpectedMin() -
setExpectedMin
-
unsetExpectedMin
public void unsetExpectedMin() -
isSetExpectedMin
public boolean isSetExpectedMin()Returns true if field expected_min is set (has been assigned a value) and false otherwise -
setExpectedMinIsSet
public void setExpectedMinIsSet(boolean value) -
getCurrent
public long getCurrent() -
setCurrent
-
unsetCurrent
public void unsetCurrent() -
isSetCurrent
public boolean isSetCurrent()Returns true if field current is set (has been assigned a value) and false otherwise -
setCurrentIsSet
public void setCurrentIsSet(boolean value) -
getExpectedMax
public long getExpectedMax() -
setExpectedMax
-
unsetExpectedMax
public void unsetExpectedMax() -
isSetExpectedMax
public boolean isSetExpectedMax()Returns true if field expected_max is set (has been assigned a value) and false otherwise -
setExpectedMaxIsSet
public void setExpectedMaxIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._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<AccountBalance,AccountBalance._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<AccountBalance>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<AccountBalance,AccountBalance._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
-