/** * Performs a deep copy on <i>other</i>. */ public GlobalStreamId(GlobalStreamId other) { if (other.is_set_componentId()) { this.componentId = other.componentId; } if (other.is_set_streamId()) { this.streamId = other.streamId; } }
/** 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 COMPONENT_ID: return is_set_componentId(); case STREAM_ID: return is_set_streamId(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_componentId = true && (is_set_componentId()); list.add(present_componentId); if (present_componentId) list.add(componentId); boolean present_streamId = true && (is_set_streamId()); list.add(present_streamId); if (present_streamId) list.add(streamId); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public GlobalStreamId(GlobalStreamId other) { if (other.is_set_componentId()) { this.componentId = other.componentId; } if (other.is_set_streamId()) { this.streamId = other.streamId; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_componentId = true && (is_set_componentId()); builder.append(present_componentId); if (present_componentId) builder.append(componentId); boolean present_streamId = true && (is_set_streamId()); builder.append(present_streamId); if (present_streamId) builder.append(streamId); 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 COMPONENT_ID: return is_set_componentId(); case STREAM_ID: return is_set_streamId(); } throw new IllegalStateException(); }
public boolean equals(GlobalStreamId that) { if (that == null) return false; boolean this_present_componentId = true && this.is_set_componentId(); boolean that_present_componentId = true && that.is_set_componentId(); if (this_present_componentId || that_present_componentId) { if (!(this_present_componentId && that_present_componentId)) return false; if (!this.componentId.equals(that.componentId)) return false; } boolean this_present_streamId = true && this.is_set_streamId(); boolean that_present_streamId = true && that.is_set_streamId(); if (this_present_streamId || that_present_streamId) { if (!(this_present_streamId && that_present_streamId)) return false; if (!this.streamId.equals(that.streamId)) return false; } return true; }
@Override public int compareTo(GlobalStreamId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_componentId()).compareTo(other.is_set_componentId()); if (lastComparison != 0) { return lastComparison; } if (is_set_componentId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.componentId, other.componentId); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_streamId()).compareTo(other.is_set_streamId()); if (lastComparison != 0) { return lastComparison; } if (is_set_streamId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.streamId, other.streamId); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(GlobalStreamId that) { if (that == null) return false; boolean this_present_componentId = true && this.is_set_componentId(); boolean that_present_componentId = true && that.is_set_componentId(); if (this_present_componentId || that_present_componentId) { if (!(this_present_componentId && that_present_componentId)) return false; if (!this.componentId.equals(that.componentId)) return false; } boolean this_present_streamId = true && this.is_set_streamId(); boolean that_present_streamId = true && that.is_set_streamId(); if (this_present_streamId || that_present_streamId) { if (!(this_present_streamId && that_present_streamId)) return false; if (!this.streamId.equals(that.streamId)) return false; } return true; }
public int compareTo(GlobalStreamId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; GlobalStreamId typedOther = (GlobalStreamId)other; lastComparison = Boolean.valueOf(is_set_componentId()).compareTo(typedOther.is_set_componentId()); if (lastComparison != 0) { return lastComparison; } if (is_set_componentId()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.componentId, typedOther.componentId); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_streamId()).compareTo(typedOther.is_set_streamId()); if (lastComparison != 0) { return lastComparison; } if (is_set_streamId()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.streamId, typedOther.streamId); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_componentId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString()); } if (!is_set_streamId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_componentId()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString()); } if (!is_set_streamId()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString()); } }
/** * Performs a deep copy on <i>other</i>. */ public GlobalStreamId(GlobalStreamId other) { if (other.is_set_componentId()) { this.componentId = other.componentId; } if (other.is_set_streamId()) { this.streamId = other.streamId; } }
/** * Performs a deep copy on <i>other</i>. */ public GlobalStreamId(GlobalStreamId other) { if (other.is_set_componentId()) { this.componentId = other.componentId; } if (other.is_set_streamId()) { this.streamId = other.streamId; } }
/** 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 COMPONENT_ID: return is_set_componentId(); case STREAM_ID: return is_set_streamId(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_componentId = true && (is_set_componentId()); builder.append(present_componentId); if (present_componentId) builder.append(componentId); boolean present_streamId = true && (is_set_streamId()); builder.append(present_streamId); if (present_streamId) builder.append(streamId); 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 COMPONENT_ID: return is_set_componentId(); case STREAM_ID: return is_set_streamId(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_componentId = true && (is_set_componentId()); list.add(present_componentId); if (present_componentId) list.add(componentId); boolean present_streamId = true && (is_set_streamId()); list.add(present_streamId); if (present_streamId) list.add(streamId); return list.hashCode(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_componentId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString()); } if (!is_set_streamId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString()); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_componentId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString()); } if (!is_set_streamId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString()); } // check for sub-struct validity }