Created
August 30, 2010 04:59
-
-
Save scotthernandez/557031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) radix(10) lradix(10) | |
// Source File Name: SaleItem.java | |
package gen; | |
import java.io.Serializable; | |
import java.util.*; | |
import org.apache.thrift.*; | |
import org.apache.thrift.meta_data.*; | |
import org.apache.thrift.protocol.*; | |
import shared.MyCampusDatum; | |
import utils.Utils; | |
// Referenced classes of package gen: | |
// Category | |
public class SaleItem extends MyCampusDatum | |
implements TBase, Serializable, Cloneable | |
{ | |
public static final class _Fields extends Enum | |
implements TFieldIdEnum | |
{ | |
public static _Fields findByThriftId(int fieldId) | |
{ | |
switch(fieldId) | |
{ | |
case 1: // '\001' | |
return ID; | |
case 2: // '\002' | |
return POSTER_ID; | |
case 3: // '\003' | |
return CATEGORY; | |
case 4: // '\004' | |
return TITLE; | |
case 5: // '\005' | |
return DESCRIPTION; | |
case 6: // '\006' | |
return CREATIONDATE; | |
case 7: // '\007' | |
return PRICE; | |
case 8: // '\b' | |
return TAGS; | |
} | |
return null; | |
} | |
public static _Fields findByThriftIdOrThrow(int fieldId) | |
{ | |
_Fields fields = findByThriftId(fieldId); | |
if(fields == null) | |
throw new IllegalArgumentException((new StringBuilder("Field ")).append(fieldId).append(" doesn't exist!").toString()); | |
else | |
return fields; | |
} | |
public static _Fields findByName(String name) | |
{ | |
return (_Fields)byName.get(name); | |
} | |
public short getThriftFieldId() | |
{ | |
return _thriftId; | |
} | |
public String getFieldName() | |
{ | |
return _fieldName; | |
} | |
public static _Fields[] values() | |
{ | |
_Fields a_lfields[]; | |
int i; | |
_Fields a_lfields1[]; | |
System.arraycopy(a_lfields = ENUM$VALUES, 0, a_lfields1 = new _Fields[i = a_lfields.length], 0, i); | |
return a_lfields1; | |
} | |
public static _Fields valueOf(String s) | |
{ | |
return (_Fields)Enum.valueOf(gen/SaleItem$_Fields, s); | |
} | |
public static final _Fields ID; | |
public static final _Fields POSTER_ID; | |
public static final _Fields CATEGORY; | |
public static final _Fields TITLE; | |
public static final _Fields DESCRIPTION; | |
public static final _Fields CREATIONDATE; | |
public static final _Fields PRICE; | |
public static final _Fields TAGS; | |
private static final Map byName; | |
private final short _thriftId; | |
private final String _fieldName; | |
private static final _Fields ENUM$VALUES[]; | |
static | |
{ | |
ID = new _Fields("ID", 0, (short)1, "id"); | |
POSTER_ID = new _Fields("POSTER_ID", 1, (short)2, "posterId"); | |
CATEGORY = new _Fields("CATEGORY", 2, (short)3, "category"); | |
TITLE = new _Fields("TITLE", 3, (short)4, "title"); | |
DESCRIPTION = new _Fields("DESCRIPTION", 4, (short)5, "description"); | |
CREATIONDATE = new _Fields("CREATIONDATE", 5, (short)6, "creationdate"); | |
PRICE = new _Fields("PRICE", 6, (short)7, "price"); | |
TAGS = new _Fields("TAGS", 7, (short)8, "tags"); | |
ENUM$VALUES = (new _Fields[] { | |
ID, POSTER_ID, CATEGORY, TITLE, DESCRIPTION, CREATIONDATE, PRICE, TAGS | |
}); | |
byName = new HashMap(); | |
_Fields field; | |
for(Iterator iterator = EnumSet.allOf(gen/SaleItem$_Fields).iterator(); iterator.hasNext(); byName.put(field.getFieldName(), field)) | |
field = (_Fields)iterator.next(); | |
} | |
private _Fields(String s, int i, short thriftId, String fieldName) | |
{ | |
super(s, i); | |
_thriftId = thriftId; | |
_fieldName = fieldName; | |
} | |
} | |
protected void prePersist() | |
{ | |
super.prePersist(); | |
setId(Utils.MD5((new StringBuilder(String.valueOf(getTitle()))).append(getCreationdate()).toString())); | |
} | |
public SaleItem() | |
{ | |
__isset_bit_vector = new BitSet(1); | |
} | |
public SaleItem(String id, String posterId, Category category, String title, String description, String creationdate, double price, List tags) | |
{ | |
this(); | |
this.id = id; | |
this.posterId = posterId; | |
this.category = category; | |
this.title = title; | |
this.description = description; | |
this.creationdate = creationdate; | |
this.price = price; | |
setPriceIsSet(true); | |
this.tags = tags; | |
} | |
public SaleItem(SaleItem other) | |
{ | |
__isset_bit_vector = new BitSet(1); | |
__isset_bit_vector.clear(); | |
__isset_bit_vector.or(other.__isset_bit_vector); | |
if(other.isSetId()) | |
id = other.id; | |
if(other.isSetPosterId()) | |
posterId = other.posterId; | |
if(other.isSetCategory()) | |
category = other.category; | |
if(other.isSetTitle()) | |
title = other.title; | |
if(other.isSetDescription()) | |
description = other.description; | |
if(other.isSetCreationdate()) | |
creationdate = other.creationdate; | |
price = other.price; | |
if(other.isSetTags()) | |
{ | |
List __this__tags = new ArrayList(); | |
String other_element; | |
for(Iterator iterator = other.tags.iterator(); iterator.hasNext(); __this__tags.add(other_element)) | |
other_element = (String)iterator.next(); | |
tags = __this__tags; | |
} | |
} | |
public SaleItem deepCopy() | |
{ | |
return new SaleItem(this); | |
} | |
/** | |
* @deprecated Method clone is deprecated | |
*/ | |
public SaleItem clone() | |
{ | |
return new SaleItem(this); | |
} | |
public String getId() | |
{ | |
return id; | |
} | |
public SaleItem setId(String id) | |
{ | |
this.id = id; | |
return this; | |
} | |
public void unsetId() | |
{ | |
id = null; | |
} | |
public boolean isSetId() | |
{ | |
return id != null; | |
} | |
public void setIdIsSet(boolean value) | |
{ | |
if(!value) | |
id = null; | |
} | |
public String getPosterId() | |
{ | |
return posterId; | |
} | |
public SaleItem setPosterId(String posterId) | |
{ | |
this.posterId = posterId; | |
return this; | |
} | |
public void unsetPosterId() | |
{ | |
posterId = null; | |
} | |
public boolean isSetPosterId() | |
{ | |
return posterId != null; | |
} | |
public void setPosterIdIsSet(boolean value) | |
{ | |
if(!value) | |
posterId = null; | |
} | |
public Category getCategory() | |
{ | |
return category; | |
} | |
public SaleItem setCategory(Category category) | |
{ | |
this.category = category; | |
return this; | |
} | |
public void unsetCategory() | |
{ | |
category = null; | |
} | |
public boolean isSetCategory() | |
{ | |
return category != null; | |
} | |
public void setCategoryIsSet(boolean value) | |
{ | |
if(!value) | |
category = null; | |
} | |
public String getTitle() | |
{ | |
return title; | |
} | |
public SaleItem setTitle(String title) | |
{ | |
this.title = title; | |
return this; | |
} | |
public void unsetTitle() | |
{ | |
title = null; | |
} | |
public boolean isSetTitle() | |
{ | |
return title != null; | |
} | |
public void setTitleIsSet(boolean value) | |
{ | |
if(!value) | |
title = null; | |
} | |
public String getDescription() | |
{ | |
return description; | |
} | |
public SaleItem setDescription(String description) | |
{ | |
this.description = description; | |
return this; | |
} | |
public void unsetDescription() | |
{ | |
description = null; | |
} | |
public boolean isSetDescription() | |
{ | |
return description != null; | |
} | |
public void setDescriptionIsSet(boolean value) | |
{ | |
if(!value) | |
description = null; | |
} | |
public String getCreationdate() | |
{ | |
return creationdate; | |
} | |
public SaleItem setCreationdate(String creationdate) | |
{ | |
this.creationdate = creationdate; | |
return this; | |
} | |
public void unsetCreationdate() | |
{ | |
creationdate = null; | |
} | |
public boolean isSetCreationdate() | |
{ | |
return creationdate != null; | |
} | |
public void setCreationdateIsSet(boolean value) | |
{ | |
if(!value) | |
creationdate = null; | |
} | |
public double getPrice() | |
{ | |
return price; | |
} | |
public SaleItem setPrice(double price) | |
{ | |
this.price = price; | |
setPriceIsSet(true); | |
return this; | |
} | |
public void unsetPrice() | |
{ | |
__isset_bit_vector.clear(0); | |
} | |
public boolean isSetPrice() | |
{ | |
return __isset_bit_vector.get(0); | |
} | |
public void setPriceIsSet(boolean value) | |
{ | |
__isset_bit_vector.set(0, value); | |
} | |
public int getTagsSize() | |
{ | |
return tags != null ? tags.size() : 0; | |
} | |
public Iterator getTagsIterator() | |
{ | |
return tags != null ? tags.iterator() : null; | |
} | |
public void addToTags(String elem) | |
{ | |
if(tags == null) | |
tags = new ArrayList(); | |
tags.add(elem); | |
} | |
public List getTags() | |
{ | |
return tags; | |
} | |
public SaleItem setTags(List tags) | |
{ | |
this.tags = tags; | |
return this; | |
} | |
public void unsetTags() | |
{ | |
tags = null; | |
} | |
public boolean isSetTags() | |
{ | |
return tags != null; | |
} | |
public void setTagsIsSet(boolean value) | |
{ | |
if(!value) | |
tags = null; | |
} | |
public void setFieldValue(_Fields field, Object value) | |
{ | |
switch($SWITCH_TABLE$gen$SaleItem$_Fields()[field.ordinal()]) | |
{ | |
default: | |
break; | |
case 1: // '\001' | |
if(value == null) | |
unsetId(); | |
else | |
setId((String)value); | |
break; | |
case 2: // '\002' | |
if(value == null) | |
unsetPosterId(); | |
else | |
setPosterId((String)value); | |
break; | |
case 3: // '\003' | |
if(value == null) | |
unsetCategory(); | |
else | |
setCategory((Category)value); | |
break; | |
case 4: // '\004' | |
if(value == null) | |
unsetTitle(); | |
else | |
setTitle((String)value); | |
break; | |
case 5: // '\005' | |
if(value == null) | |
unsetDescription(); | |
else | |
setDescription((String)value); | |
break; | |
case 6: // '\006' | |
if(value == null) | |
unsetCreationdate(); | |
else | |
setCreationdate((String)value); | |
break; | |
case 7: // '\007' | |
if(value == null) | |
unsetPrice(); | |
else | |
setPrice(((Double)value).doubleValue()); | |
break; | |
case 8: // '\b' | |
if(value == null) | |
unsetTags(); | |
else | |
setTags((List)value); | |
break; | |
} | |
} | |
public void setFieldValue(int fieldID, Object value) | |
{ | |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value); | |
} | |
public Object getFieldValue(_Fields field) | |
{ | |
switch($SWITCH_TABLE$gen$SaleItem$_Fields()[field.ordinal()]) | |
{ | |
case 1: // '\001' | |
return getId(); | |
case 2: // '\002' | |
return getPosterId(); | |
case 3: // '\003' | |
return getCategory(); | |
case 4: // '\004' | |
return getTitle(); | |
case 5: // '\005' | |
return getDescription(); | |
case 6: // '\006' | |
return getCreationdate(); | |
case 7: // '\007' | |
return new Double(getPrice()); | |
case 8: // '\b' | |
return getTags(); | |
} | |
throw new IllegalStateException(); | |
} | |
public Object getFieldValue(int fieldId) | |
{ | |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId)); | |
} | |
public boolean isSet(_Fields field) | |
{ | |
switch($SWITCH_TABLE$gen$SaleItem$_Fields()[field.ordinal()]) | |
{ | |
case 1: // '\001' | |
return isSetId(); | |
case 2: // '\002' | |
return isSetPosterId(); | |
case 3: // '\003' | |
return isSetCategory(); | |
case 4: // '\004' | |
return isSetTitle(); | |
case 5: // '\005' | |
return isSetDescription(); | |
case 6: // '\006' | |
return isSetCreationdate(); | |
case 7: // '\007' | |
return isSetPrice(); | |
case 8: // '\b' | |
return isSetTags(); | |
} | |
throw new IllegalStateException(); | |
} | |
public boolean isSet(int fieldID) | |
{ | |
return isSet(_Fields.findByThriftIdOrThrow(fieldID)); | |
} | |
public boolean equals(Object that) | |
{ | |
if(that == null) | |
return false; | |
if(that instanceof SaleItem) | |
return equals((SaleItem)that); | |
else | |
return false; | |
} | |
public boolean equals(SaleItem that) | |
{ | |
if(that == null) | |
return false; | |
boolean this_present_id = isSetId(); | |
boolean that_present_id = that.isSetId(); | |
if(this_present_id || that_present_id) | |
{ | |
if(!this_present_id || !that_present_id) | |
return false; | |
if(!id.equals(that.id)) | |
return false; | |
} | |
boolean this_present_posterId = isSetPosterId(); | |
boolean that_present_posterId = that.isSetPosterId(); | |
if(this_present_posterId || that_present_posterId) | |
{ | |
if(!this_present_posterId || !that_present_posterId) | |
return false; | |
if(!posterId.equals(that.posterId)) | |
return false; | |
} | |
boolean this_present_category = isSetCategory(); | |
boolean that_present_category = that.isSetCategory(); | |
if(this_present_category || that_present_category) | |
{ | |
if(!this_present_category || !that_present_category) | |
return false; | |
if(!category.equals(that.category)) | |
return false; | |
} | |
boolean this_present_title = isSetTitle(); | |
boolean that_present_title = that.isSetTitle(); | |
if(this_present_title || that_present_title) | |
{ | |
if(!this_present_title || !that_present_title) | |
return false; | |
if(!title.equals(that.title)) | |
return false; | |
} | |
boolean this_present_description = isSetDescription(); | |
boolean that_present_description = that.isSetDescription(); | |
if(this_present_description || that_present_description) | |
{ | |
if(!this_present_description || !that_present_description) | |
return false; | |
if(!description.equals(that.description)) | |
return false; | |
} | |
boolean this_present_creationdate = isSetCreationdate(); | |
boolean that_present_creationdate = that.isSetCreationdate(); | |
if(this_present_creationdate || that_present_creationdate) | |
{ | |
if(!this_present_creationdate || !that_present_creationdate) | |
return false; | |
if(!creationdate.equals(that.creationdate)) | |
return false; | |
} | |
boolean this_present_price = true; | |
boolean that_present_price = true; | |
if(this_present_price || that_present_price) | |
{ | |
if(!this_present_price || !that_present_price) | |
return false; | |
if(price != that.price) | |
return false; | |
} | |
boolean this_present_tags = isSetTags(); | |
boolean that_present_tags = that.isSetTags(); | |
if(this_present_tags || that_present_tags) | |
{ | |
if(!this_present_tags || !that_present_tags) | |
return false; | |
if(!tags.equals(that.tags)) | |
return false; | |
} | |
return true; | |
} | |
public int hashCode() | |
{ | |
return 0; | |
} | |
public int compareTo(SaleItem other) | |
{ | |
if(!getClass().equals(other.getClass())) | |
return getClass().getName().compareTo(other.getClass().getName()); | |
int lastComparison = 0; | |
SaleItem typedOther = other; | |
lastComparison = Boolean.valueOf(isSetId()).compareTo(Boolean.valueOf(typedOther.isSetId())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetId()) | |
{ | |
lastComparison = TBaseHelper.compareTo(id, typedOther.id); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetPosterId()).compareTo(Boolean.valueOf(typedOther.isSetPosterId())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetPosterId()) | |
{ | |
lastComparison = TBaseHelper.compareTo(posterId, typedOther.posterId); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetCategory()).compareTo(Boolean.valueOf(typedOther.isSetCategory())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetCategory()) | |
{ | |
lastComparison = TBaseHelper.compareTo(category, typedOther.category); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetTitle()).compareTo(Boolean.valueOf(typedOther.isSetTitle())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetTitle()) | |
{ | |
lastComparison = TBaseHelper.compareTo(title, typedOther.title); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(Boolean.valueOf(typedOther.isSetDescription())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetDescription()) | |
{ | |
lastComparison = TBaseHelper.compareTo(description, typedOther.description); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetCreationdate()).compareTo(Boolean.valueOf(typedOther.isSetCreationdate())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetCreationdate()) | |
{ | |
lastComparison = TBaseHelper.compareTo(creationdate, typedOther.creationdate); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetPrice()).compareTo(Boolean.valueOf(typedOther.isSetPrice())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetPrice()) | |
{ | |
lastComparison = TBaseHelper.compareTo(price, typedOther.price); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
lastComparison = Boolean.valueOf(isSetTags()).compareTo(Boolean.valueOf(typedOther.isSetTags())); | |
if(lastComparison != 0) | |
return lastComparison; | |
if(isSetTags()) | |
{ | |
lastComparison = TBaseHelper.compareTo(tags, typedOther.tags); | |
if(lastComparison != 0) | |
return lastComparison; | |
} | |
return 0; | |
} | |
public void read(TProtocol iprot) | |
throws TException | |
{ | |
iprot.readStructBegin(); | |
do | |
{ | |
TField field = iprot.readFieldBegin(); | |
if(field.type != 0) | |
{ | |
switch(field.id) | |
{ | |
case 1: // '\001' | |
if(field.type == 11) | |
id = iprot.readString(); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 2: // '\002' | |
if(field.type == 11) | |
posterId = iprot.readString(); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 3: // '\003' | |
if(field.type == 8) | |
category = Category.findByValue(iprot.readI32()); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 4: // '\004' | |
if(field.type == 11) | |
title = iprot.readString(); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 5: // '\005' | |
if(field.type == 11) | |
description = iprot.readString(); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 6: // '\006' | |
if(field.type == 11) | |
creationdate = iprot.readString(); | |
else | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
case 7: // '\007' | |
if(field.type == 4) | |
{ | |
price = iprot.readDouble(); | |
setPriceIsSet(true); | |
} else | |
{ | |
TProtocolUtil.skip(iprot, field.type); | |
} | |
break; | |
case 8: // '\b' | |
if(field.type == 15) | |
{ | |
TList _list0 = iprot.readListBegin(); | |
tags = new ArrayList(_list0.size); | |
for(int _i1 = 0; _i1 < _list0.size; _i1++) | |
{ | |
String _elem2 = iprot.readString(); | |
tags.add(_elem2); | |
} | |
iprot.readListEnd(); | |
} else | |
{ | |
TProtocolUtil.skip(iprot, field.type); | |
} | |
break; | |
default: | |
TProtocolUtil.skip(iprot, field.type); | |
break; | |
} | |
iprot.readFieldEnd(); | |
} else | |
{ | |
iprot.readStructEnd(); | |
validate(); | |
return; | |
} | |
} while(true); | |
} | |
public void write(TProtocol oprot) | |
throws TException | |
{ | |
validate(); | |
oprot.writeStructBegin(STRUCT_DESC); | |
if(id != null) | |
{ | |
oprot.writeFieldBegin(ID_FIELD_DESC); | |
oprot.writeString(id); | |
oprot.writeFieldEnd(); | |
} | |
if(posterId != null) | |
{ | |
oprot.writeFieldBegin(POSTER_ID_FIELD_DESC); | |
oprot.writeString(posterId); | |
oprot.writeFieldEnd(); | |
} | |
if(category != null) | |
{ | |
oprot.writeFieldBegin(CATEGORY_FIELD_DESC); | |
oprot.writeI32(category.getValue()); | |
oprot.writeFieldEnd(); | |
} | |
if(title != null) | |
{ | |
oprot.writeFieldBegin(TITLE_FIELD_DESC); | |
oprot.writeString(title); | |
oprot.writeFieldEnd(); | |
} | |
if(description != null) | |
{ | |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); | |
oprot.writeString(description); | |
oprot.writeFieldEnd(); | |
} | |
if(creationdate != null) | |
{ | |
oprot.writeFieldBegin(CREATIONDATE_FIELD_DESC); | |
oprot.writeString(creationdate); | |
oprot.writeFieldEnd(); | |
} | |
oprot.writeFieldBegin(PRICE_FIELD_DESC); | |
oprot.writeDouble(price); | |
oprot.writeFieldEnd(); | |
if(tags != null) | |
{ | |
oprot.writeFieldBegin(TAGS_FIELD_DESC); | |
oprot.writeListBegin(new TList((byte)11, tags.size())); | |
String _iter3; | |
for(Iterator iterator = tags.iterator(); iterator.hasNext(); oprot.writeString(_iter3)) | |
_iter3 = (String)iterator.next(); | |
oprot.writeListEnd(); | |
oprot.writeFieldEnd(); | |
} | |
oprot.writeFieldStop(); | |
oprot.writeStructEnd(); | |
} | |
public String toString() | |
{ | |
StringBuilder sb = new StringBuilder("SaleItem("); | |
boolean first = true; | |
sb.append("id:"); | |
if(id == null) | |
sb.append("null"); | |
else | |
sb.append(id); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("posterId:"); | |
if(posterId == null) | |
sb.append("null"); | |
else | |
sb.append(posterId); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("category:"); | |
if(category == null) | |
sb.append("null"); | |
else | |
sb.append(category); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("title:"); | |
if(title == null) | |
sb.append("null"); | |
else | |
sb.append(title); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("description:"); | |
if(description == null) | |
sb.append("null"); | |
else | |
sb.append(description); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("creationdate:"); | |
if(creationdate == null) | |
sb.append("null"); | |
else | |
sb.append(creationdate); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("price:"); | |
sb.append(price); | |
first = false; | |
if(!first) | |
sb.append(", "); | |
sb.append("tags:"); | |
if(tags == null) | |
sb.append("null"); | |
else | |
sb.append(tags); | |
first = false; | |
sb.append(")"); | |
return sb.toString(); | |
} | |
public void validate() | |
throws TException | |
{ | |
} | |
public void clear() | |
{ | |
} | |
/** | |
* @deprecated Method clone is deprecated | |
*/ | |
public volatile Object clone() | |
throws CloneNotSupportedException | |
{ | |
return clone(); | |
} | |
public volatile boolean isSet(TFieldIdEnum tfieldidenum) | |
{ | |
return isSet((_Fields)tfieldidenum); | |
} | |
public volatile Object getFieldValue(TFieldIdEnum tfieldidenum) | |
{ | |
return getFieldValue((_Fields)tfieldidenum); | |
} | |
public volatile void setFieldValue(TFieldIdEnum tfieldidenum, Object obj) | |
{ | |
setFieldValue((_Fields)tfieldidenum, obj); | |
} | |
public volatile TBase deepCopy() | |
{ | |
return deepCopy(); | |
} | |
public volatile int compareTo(Object obj) | |
{ | |
return compareTo((SaleItem)obj); | |
} | |
static int[] $SWITCH_TABLE$gen$SaleItem$_Fields() | |
{ | |
$SWITCH_TABLE$gen$SaleItem$_Fields; | |
if($SWITCH_TABLE$gen$SaleItem$_Fields == null) goto _L2; else goto _L1 | |
_L1: | |
return; | |
_L2: | |
JVM INSTR pop ; | |
int ai[] = new int[_Fields.values().length]; | |
try | |
{ | |
ai[_Fields.CATEGORY.ordinal()] = 3; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.CREATIONDATE.ordinal()] = 6; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.DESCRIPTION.ordinal()] = 5; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.ID.ordinal()] = 1; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.POSTER_ID.ordinal()] = 2; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.PRICE.ordinal()] = 7; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.TAGS.ordinal()] = 8; | |
} | |
catch(NoSuchFieldError _ex) { } | |
try | |
{ | |
ai[_Fields.TITLE.ordinal()] = 4; | |
} | |
catch(NoSuchFieldError _ex) { } | |
return $SWITCH_TABLE$gen$SaleItem$_Fields = ai; | |
} | |
private static final TStruct STRUCT_DESC = new TStruct("SaleItem"); | |
private static final TField ID_FIELD_DESC = new TField("id", (byte)11, (short)1); | |
private static final TField POSTER_ID_FIELD_DESC = new TField("posterId", (byte)11, (short)2); | |
private static final TField CATEGORY_FIELD_DESC = new TField("category", (byte)8, (short)3); | |
private static final TField TITLE_FIELD_DESC = new TField("title", (byte)11, (short)4); | |
private static final TField DESCRIPTION_FIELD_DESC = new TField("description", (byte)11, (short)5); | |
private static final TField CREATIONDATE_FIELD_DESC = new TField("creationdate", (byte)11, (short)6); | |
private static final TField PRICE_FIELD_DESC = new TField("price", (byte)4, (short)7); | |
private static final TField TAGS_FIELD_DESC = new TField("tags", (byte)15, (short)8); | |
public String id; | |
public String posterId; | |
public Category category; | |
public String title; | |
public String description; | |
public String creationdate; | |
public double price; | |
public List tags; | |
private static final int __PRICE_ISSET_ID = 0; | |
private BitSet __isset_bit_vector; | |
public static final Map metaDataMap; | |
private static int $SWITCH_TABLE$gen$SaleItem$_Fields[]; | |
static | |
{ | |
Map tmpMap = new EnumMap(gen/SaleItem$_Fields); | |
tmpMap.put(_Fields.ID, new FieldMetaData("id", (byte)3, new FieldValueMetaData((byte)11))); | |
tmpMap.put(_Fields.POSTER_ID, new FieldMetaData("posterId", (byte)3, new FieldValueMetaData((byte)11))); | |
tmpMap.put(_Fields.CATEGORY, new FieldMetaData("category", (byte)3, new EnumMetaData((byte)16, gen/Category))); | |
tmpMap.put(_Fields.TITLE, new FieldMetaData("title", (byte)3, new FieldValueMetaData((byte)11))); | |
tmpMap.put(_Fields.DESCRIPTION, new FieldMetaData("description", (byte)3, new FieldValueMetaData((byte)11))); | |
tmpMap.put(_Fields.CREATIONDATE, new FieldMetaData("creationdate", (byte)3, new FieldValueMetaData((byte)11))); | |
tmpMap.put(_Fields.PRICE, new FieldMetaData("price", (byte)3, new FieldValueMetaData((byte)4))); | |
tmpMap.put(_Fields.TAGS, new FieldMetaData("tags", (byte)3, new ListMetaData((byte)15, new FieldValueMetaData((byte)11)))); | |
metaDataMap = Collections.unmodifiableMap(tmpMap); | |
FieldMetaData.addStructMetaDataMap(gen/SaleItem, metaDataMap); | |
} | |
} | |
// Messages from Jad: | |
// Couldn't fully decompile method $SWITCH_TABLE$gen$SaleItem$_Fields | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment