| Line 3... |
Line 3... |
| 3 |
*
|
3 |
*
|
| 4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
| 5 |
*/
|
5 |
*/
|
| 6 |
package in.shop2020.model.v1.inventory;
|
6 |
package in.shop2020.model.v1.inventory;
|
| 7 |
|
7 |
|
| 8 |
import java.util.List;
|
- |
|
| 9 |
import java.util.ArrayList;
|
- |
|
| 10 |
import java.util.Map;
|
8 |
import java.util.*;
|
| 11 |
import java.util.HashMap;
|
- |
|
| 12 |
import java.util.EnumMap;
|
- |
|
| 13 |
import java.util.Set;
|
- |
|
| 14 |
import java.util.HashSet;
|
- |
|
| 15 |
import java.util.EnumSet;
|
- |
|
| 16 |
import java.util.Collections;
|
- |
|
| 17 |
import java.util.BitSet;
|
- |
|
| 18 |
import java.nio.ByteBuffer;
|
- |
|
| 19 |
import java.util.Arrays;
|
- |
|
| 20 |
import org.slf4j.Logger;
|
- |
|
| 21 |
import org.slf4j.LoggerFactory;
|
- |
|
| 22 |
|
9 |
|
| 23 |
public class ItemStockPurchaseParams implements org.apache.thrift.TBase<ItemStockPurchaseParams, ItemStockPurchaseParams._Fields>, java.io.Serializable, Cloneable {
|
10 |
public class ItemStockPurchaseParams implements org.apache.thrift.TBase<ItemStockPurchaseParams, ItemStockPurchaseParams._Fields>, java.io.Serializable, Cloneable {
|
| 24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ItemStockPurchaseParams");
|
11 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ItemStockPurchaseParams");
|
| 25 |
|
12 |
|
| 26 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
|
13 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short) 1);
|
| 27 |
private static final org.apache.thrift.protocol.TField NUM_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numOfDaysStock", org.apache.thrift.protocol.TType.I32, (short)2);
|
14 |
private static final org.apache.thrift.protocol.TField NUM_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numOfDaysStock", org.apache.thrift.protocol.TType.I32, (short) 2);
|
| 28 |
private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)3);
|
15 |
private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short) 3);
|
| 29 |
|
16 |
|
| 30 |
private long item_id; // required
|
17 |
private long item_id; // required
|
| 31 |
private int numOfDaysStock; // required
|
18 |
private int numOfDaysStock; // required
|
| 32 |
private long minStockLevel; // required
|
19 |
private long minStockLevel; // required
|
| 33 |
|
20 |
|
| - |
|
21 |
/**
|
| 34 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
22 |
* The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| - |
|
23 |
*/
|
| 35 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
24 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 36 |
ITEM_ID((short)1, "item_id"),
|
25 |
ITEM_ID((short) 1, "item_id"),
|
| 37 |
NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
|
26 |
NUM_OF_DAYS_STOCK((short) 2, "numOfDaysStock"),
|
| 38 |
MIN_STOCK_LEVEL((short)3, "minStockLevel");
|
27 |
MIN_STOCK_LEVEL((short) 3, "minStockLevel");
|
| 39 |
|
28 |
|
| 40 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
29 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 41 |
|
30 |
|
| 42 |
static {
|
31 |
static {
|
| 43 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
32 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 104... |
Line 93... |
| 104 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
93 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 105 |
static {
|
94 |
static {
|
| 106 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
95 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 107 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
96 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 108 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
97 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 109 |
tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
98 |
tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 110 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
99 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 111 |
tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
100 |
tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 112 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
101 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 113 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
102 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 114 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ItemStockPurchaseParams.class, metaDataMap);
|
103 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ItemStockPurchaseParams.class, metaDataMap);
|
| 115 |
}
|
104 |
}
|
| 116 |
|
105 |
|
| 117 |
public ItemStockPurchaseParams() {
|
106 |
public ItemStockPurchaseParams() {
|
| 118 |
}
|
107 |
}
|
| 119 |
|
108 |
|
| 120 |
public ItemStockPurchaseParams(
|
109 |
public ItemStockPurchaseParams(
|
| 121 |
long item_id,
|
110 |
long item_id,
|
| 122 |
int numOfDaysStock,
|
111 |
int numOfDaysStock,
|
| 123 |
long minStockLevel)
|
112 |
long minStockLevel) {
|
| 124 |
{
|
- |
|
| 125 |
this();
|
113 |
this();
|
| 126 |
this.item_id = item_id;
|
114 |
this.item_id = item_id;
|
| 127 |
setItem_idIsSet(true);
|
115 |
setItem_idIsSet(true);
|
| 128 |
this.numOfDaysStock = numOfDaysStock;
|
116 |
this.numOfDaysStock = numOfDaysStock;
|
| 129 |
setNumOfDaysStockIsSet(true);
|
117 |
setNumOfDaysStockIsSet(true);
|
| Line 286... |
Line 274... |
| 286 |
@Override
|
274 |
@Override
|
| 287 |
public boolean equals(Object that) {
|
275 |
public boolean equals(Object that) {
|
| 288 |
if (that == null)
|
276 |
if (that == null)
|
| 289 |
return false;
|
277 |
return false;
|
| 290 |
if (that instanceof ItemStockPurchaseParams)
|
278 |
if (that instanceof ItemStockPurchaseParams)
|
| 291 |
return this.equals((ItemStockPurchaseParams)that);
|
279 |
return this.equals((ItemStockPurchaseParams) that);
|
| 292 |
return false;
|
280 |
return false;
|
| 293 |
}
|
281 |
}
|
| 294 |
|
282 |
|
| 295 |
public boolean equals(ItemStockPurchaseParams that) {
|
283 |
public boolean equals(ItemStockPurchaseParams that) {
|
| 296 |
if (that == null)
|
284 |
if (that == null)
|
| Line 335... |
Line 323... |
| 335 |
if (!getClass().equals(other.getClass())) {
|
323 |
if (!getClass().equals(other.getClass())) {
|
| 336 |
return getClass().getName().compareTo(other.getClass().getName());
|
324 |
return getClass().getName().compareTo(other.getClass().getName());
|
| 337 |
}
|
325 |
}
|
| 338 |
|
326 |
|
| 339 |
int lastComparison = 0;
|
327 |
int lastComparison = 0;
|
| 340 |
ItemStockPurchaseParams typedOther = (ItemStockPurchaseParams)other;
|
328 |
ItemStockPurchaseParams typedOther = (ItemStockPurchaseParams) other;
|
| 341 |
|
329 |
|
| 342 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
330 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
| 343 |
if (lastComparison != 0) {
|
331 |
if (lastComparison != 0) {
|
| 344 |
return lastComparison;
|
332 |
return lastComparison;
|
| 345 |
}
|
333 |
}
|