Package dev.vality.damsel.domain
Class InvoiceLine
java.lang.Object
dev.vality.damsel.domain.InvoiceLine
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<InvoiceLine>,org.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-10-25")
public class InvoiceLine
extends Object
implements org.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>, Serializable, Cloneable, Comparable<InvoiceLine>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvoiceLine._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
-
Constructor Summary
Constructors Constructor Description InvoiceLine()InvoiceLine(InvoiceLine other)Performs a deep copy on other.InvoiceLine(String product, int quantity, Cash price, Map<String,Value> metadata) -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(InvoiceLine other)InvoiceLinedeepCopy()booleanequals(InvoiceLine that)booleanequals(Object that)InvoiceLine._FieldsfieldForId(int fieldId)Map<InvoiceLine._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()InvoiceLine._Fields[]getFields()ObjectgetFieldValue(InvoiceLine._Fields field)Map<String,Value>getMetadata()intgetMetadataSize()CashgetPrice()StringgetProduct()intgetQuantity()inthashCode()booleanisSet(InvoiceLine._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetMetadata()Returns true if field metadata is set (has been assigned a value) and false otherwisebooleanisSetPrice()Returns true if field price is set (has been assigned a value) and false otherwisebooleanisSetProduct()Returns true if field product is set (has been assigned a value) and false otherwisebooleanisSetQuantity()Returns true if field quantity is set (has been assigned a value) and false otherwisevoidputToMetadata(String key, Value val)voidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(InvoiceLine._Fields field, Object value)InvoiceLinesetMetadata(Map<String,Value> metadata)voidsetMetadataIsSet(boolean value)InvoiceLinesetPrice(Cash price)voidsetPriceIsSet(boolean value)InvoiceLinesetProduct(String product)voidsetProductIsSet(boolean value)InvoiceLinesetQuantity(int quantity)voidsetQuantityIsSet(boolean value)StringtoString()voidunsetMetadata()voidunsetPrice()voidunsetProduct()voidunsetQuantity()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
product
-
quantity
public int quantity -
price
-
metadata
-
metaDataMap
-
-
Constructor Details
-
InvoiceLine
public InvoiceLine() -
InvoiceLine
-
InvoiceLine
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>
-
getProduct
-
setProduct
-
unsetProduct
public void unsetProduct() -
isSetProduct
public boolean isSetProduct()Returns true if field product is set (has been assigned a value) and false otherwise -
setProductIsSet
public void setProductIsSet(boolean value) -
getQuantity
public int getQuantity() -
setQuantity
-
unsetQuantity
public void unsetQuantity() -
isSetQuantity
public boolean isSetQuantity()Returns true if field quantity is set (has been assigned a value) and false otherwise -
setQuantityIsSet
public void setQuantityIsSet(boolean value) -
getPrice
-
setPrice
-
unsetPrice
public void unsetPrice() -
isSetPrice
public boolean isSetPrice()Returns true if field price is set (has been assigned a value) and false otherwise -
setPriceIsSet
public void setPriceIsSet(boolean value) -
getMetadataSize
public int getMetadataSize() -
putToMetadata
-
getMetadata
-
setMetadata
-
unsetMetadata
public void unsetMetadata() -
isSetMetadata
public boolean isSetMetadata()Returns true if field metadata is set (has been assigned a value) and false otherwise -
setMetadataIsSet
public void setMetadataIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._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<InvoiceLine,InvoiceLine._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<InvoiceLine>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<InvoiceLine,InvoiceLine._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
-