/** * Performs a deep copy on <i>other</i>. */ public PropertyFilter(PropertyFilter other) { if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
/** * Performs a deep copy on <i>other</i>. */ public PropertyFilter(PropertyFilter other) { if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case CONTENT: return isSetContent(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case CONTENT: return isSetContent(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); return list.hashCode(); }
@Override public int compareTo(PropertyFilter other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetContent()).compareTo(other.isSetContent()); if (lastComparison != 0) { return lastComparison; } if (isSetContent()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.content, other.content); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(PropertyFilter other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetContent()).compareTo(other.isSetContent()); if (lastComparison != 0) { return lastComparison; } if (isSetContent()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.content, other.content); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(PropertyFilter that) { if (that == null) return false; boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }
public boolean equals(PropertyFilter that) { if (that == null) return false; boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }