/** 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(); }
/** 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(); }
@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(); }
/** * 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; }