Package dev.vality.xrates.rate
Class Quote
java.lang.Object
dev.vality.xrates.rate.Quote
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Quote>,org.apache.thrift.TBase<Quote,Quote._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-02-22")
public class Quote
extends Object
implements org.apache.thrift.TBase<Quote,Quote._Fields>, Serializable, Cloneable, Comparable<Quote>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuote._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description CurrencydestinationRationalexchange_ratestatic Map<Quote._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapCurrencysource -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(Quote other)QuotedeepCopy()booleanequals(Quote that)booleanequals(Object that)Quote._FieldsfieldForId(int fieldId)CurrencygetDestination()RationalgetExchangeRate()Map<Quote._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Quote._Fields[]getFields()ObjectgetFieldValue(Quote._Fields field)CurrencygetSource()inthashCode()booleanisSet(Quote._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDestination()Returns true if field destination is set (has been assigned a value) and false otherwisebooleanisSetExchangeRate()Returns true if field exchange_rate is set (has been assigned a value) and false otherwisebooleanisSetSource()Returns true if field source is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)QuotesetDestination(Currency destination)voidsetDestinationIsSet(boolean value)QuotesetExchangeRate(Rational exchange_rate)voidsetExchangeRateIsSet(boolean value)voidsetFieldValue(Quote._Fields field, Object value)QuotesetSource(Currency source)voidsetSourceIsSet(boolean value)StringtoString()voidunsetDestination()voidunsetExchangeRate()voidunsetSource()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
source
-
destination
-
exchange_rate
-
metaDataMap
-
-
Constructor Details
-
Quote
public Quote() -
Quote
-
Quote
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Quote,Quote._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Quote,Quote._Fields>
-
getSource
-
setSource
-
unsetSource
public void unsetSource() -
isSetSource
public boolean isSetSource()Returns true if field source is set (has been assigned a value) and false otherwise -
setSourceIsSet
public void setSourceIsSet(boolean value) -
getDestination
-
setDestination
-
unsetDestination
public void unsetDestination() -
isSetDestination
public boolean isSetDestination()Returns true if field destination is set (has been assigned a value) and false otherwise -
setDestinationIsSet
public void setDestinationIsSet(boolean value) -
getExchangeRate
-
setExchangeRate
-
unsetExchangeRate
public void unsetExchangeRate() -
isSetExchangeRate
public boolean isSetExchangeRate()Returns true if field exchange_rate is set (has been assigned a value) and false otherwise -
setExchangeRateIsSet
public void setExchangeRateIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Quote,Quote._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Quote,Quote._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<Quote,Quote._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Quote>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Quote,Quote._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Quote,Quote._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Quote,Quote._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
-