/** * 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() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_componentId()) ? 131071 : 524287); if (is_set_componentId()) hashCode = hashCode * 8191 + componentId.hashCode(); hashCode = hashCode * 8191 + ((is_set_streamId()) ? 131071 : 524287); if (is_set_streamId()) hashCode = hashCode * 8191 + streamId.hashCode(); return 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 java.lang.IllegalArgumentException(); } switch (field) { case COMPONENT_ID: return is_set_componentId(); case STREAM_ID: return is_set_streamId(); } throw new java.lang.IllegalStateException(); }
public boolean equals(GlobalStreamId that) { if (that == null) return false; if (this == that) return true; 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 = java.lang.Boolean.valueOf(is_set_componentId()).compareTo(other.is_set_componentId()); if (lastComparison != 0) { return lastComparison; } if (is_set_componentId()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.componentId, other.componentId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_streamId()).compareTo(other.is_set_streamId()); if (lastComparison != 0) { return lastComparison; } if (is_set_streamId()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.streamId, other.streamId); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_componentId()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString()); } if (!is_set_streamId()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString()); } // check for sub-struct validity }
@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; } }
/** 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 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 }