/** 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 NAME: return isSetName(); case TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
/** 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 NAME: return isSetName(); case TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_comment = true && (isSetComment()); list.add(present_comment); if (present_comment) list.add(comment); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_comment = true && (isSetComment()); list.add(present_comment); if (present_comment) list.add(comment); return list.hashCode(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PluginOperationParamDef struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); oprot.writeI32(struct.type.getValue()); BitSet optionals = new BitSet(); if (struct.isSetComment()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetComment()) { struct.comment.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PluginOperationParamDef struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); oprot.writeI32(struct.type.getValue()); BitSet optionals = new BitSet(); if (struct.isSetComment()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetComment()) { struct.comment.write(oprot); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationParamDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationParamDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); if (lastComparison != 0) { return lastComparison; if (isSetComment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); if (lastComparison != 0) { return lastComparison; if (isSetComment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public PluginOperationParamDef(PluginOperationParamDef other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetType()) { this.type = other.type; } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
/** * Performs a deep copy on <i>other</i>. */ public PluginOperationParamDef(PluginOperationParamDef other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetType()) { this.type = other.type; } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
public boolean equals(PluginOperationParamDef that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) 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_comment = true && this.isSetComment(); boolean that_present_comment = true && that.isSetComment(); if (this_present_comment || that_present_comment) { if (!(this_present_comment && that_present_comment)) return false; if (!this.comment.equals(that.comment)) return false; } return true; }
public boolean equals(PluginOperationParamDef that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) 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_comment = true && this.isSetComment(); boolean that_present_comment = true && that.isSetComment(); if (this_present_comment || that_present_comment) { if (!(this_present_comment && that_present_comment)) return false; if (!this.comment.equals(that.comment)) return false; } return true; }