@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_spout_object = true && (is_set_spout_object()); list.add(present_spout_object); if (present_spout_object) list.add(spout_object); boolean present_common = true && (is_set_common()); list.add(present_common); if (present_common) list.add(common); return list.hashCode(); }
/** 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 SPOUT_OBJECT: return is_set_spout_object(); case COMMON: return is_set_common(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_spout_object = true && (is_set_spout_object()); builder.append(present_spout_object); if (present_spout_object) builder.append(spout_object); boolean present_common = true && (is_set_common()); builder.append(present_common); if (present_common) builder.append(common); return builder.toHashCode(); }
/** 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 SPOUT_OBJECT: return is_set_spout_object(); case COMMON: return is_set_common(); } throw new IllegalStateException(); }
@Override public int compareTo(SpoutSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_spout_object()).compareTo(other.is_set_spout_object()); if (lastComparison != 0) { return lastComparison; } if (is_set_spout_object()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.spout_object, other.spout_object); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_common()).compareTo(other.is_set_common()); if (lastComparison != 0) { return lastComparison; } if (is_set_common()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.common, other.common); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(SpoutSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; SpoutSpec typedOther = (SpoutSpec)other; lastComparison = Boolean.valueOf(is_set_spout_object()).compareTo(typedOther.is_set_spout_object()); if (lastComparison != 0) { return lastComparison; } if (is_set_spout_object()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.spout_object, typedOther.spout_object); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_common()).compareTo(typedOther.is_set_common()); if (lastComparison != 0) { return lastComparison; } if (is_set_common()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.common, typedOther.common); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(SpoutSpec that) { if (that == null) return false; boolean this_present_spout_object = true && this.is_set_spout_object(); boolean that_present_spout_object = true && that.is_set_spout_object(); if (this_present_spout_object || that_present_spout_object) { if (!(this_present_spout_object && that_present_spout_object)) return false; if (!this.spout_object.equals(that.spout_object)) return false; } boolean this_present_common = true && this.is_set_common(); boolean that_present_common = true && that.is_set_common(); if (this_present_common || that_present_common) { if (!(this_present_common && that_present_common)) return false; if (!this.common.equals(that.common)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
public boolean equals(SpoutSpec that) { if (that == null) return false; boolean this_present_spout_object = true && this.is_set_spout_object(); boolean that_present_spout_object = true && that.is_set_spout_object(); if (this_present_spout_object || that_present_spout_object) { if (!(this_present_spout_object && that_present_spout_object)) return false; if (!this.spout_object.equals(that.spout_object)) return false; } boolean this_present_common = true && this.is_set_common(); boolean that_present_common = true && that.is_set_common(); if (this_present_common || that_present_common) { if (!(this_present_common && that_present_common)) return false; if (!this.common.equals(that.common)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_spout_object()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'spout_object' is unset! Struct:" + toString()); } if (!is_set_common()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString()); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_spout_object()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'spout_object' is unset! Struct:" + toString()); } if (!is_set_common()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString()); } // check for sub-struct validity if (common != null) { common.validate(); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_spout_object = true && (is_set_spout_object()); list.add(present_spout_object); if (present_spout_object) list.add(spout_object); boolean present_common = true && (is_set_common()); list.add(present_common); if (present_common) list.add(common); return list.hashCode(); }
/** 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 SPOUT_OBJECT: return is_set_spout_object(); case COMMON: return is_set_common(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_spout_object = true && (is_set_spout_object()); builder.append(present_spout_object); if (present_spout_object) builder.append(spout_object); boolean present_common = true && (is_set_common()); builder.append(present_common); if (present_common) builder.append(common); return builder.toHashCode(); }
/** 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 SPOUT_OBJECT: return is_set_spout_object(); case COMMON: return is_set_common(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_spout_object()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'spout_object' is unset! Struct:" + toString()); } if (!is_set_common()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString()); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_spout_object()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'spout_object' is unset! Struct:" + toString()); } if (!is_set_common()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString()); } // check for sub-struct validity if (common != null) { common.validate(); } }