if (isSetNextExceptions()) { if (!first) sb.append(", "); sb.append("nextExceptions:");
/** 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 EXCEPTION_DATA: return isSetExceptionData(); case SERVER_INFO: return isSetServerInfo(); case NEXT_EXCEPTIONS: return isSetNextExceptions(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetNextExceptions()).compareTo(other.isSetNextExceptions()); if (lastComparison != 0) { return lastComparison; if (isSetNextExceptions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nextExceptions, other.nextExceptions); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, GFXDException struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.exceptionData.write(oprot); oprot.writeString(struct.serverInfo); BitSet optionals = new BitSet(); if (struct.isSetNextExceptions()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetNextExceptions()) { { oprot.writeI32(struct.nextExceptions.size()); for (GFXDExceptionData _iter254 : struct.nextExceptions) { _iter254.write(oprot); } } } }
/** * Performs a deep copy on <i>other</i>. */ public GFXDException(GFXDException other) { if (other.isSetExceptionData()) { this.exceptionData = new GFXDExceptionData(other.exceptionData); } if (other.isSetServerInfo()) { this.serverInfo = other.serverInfo; } if (other.isSetNextExceptions()) { List<GFXDExceptionData> __this__nextExceptions = new ArrayList<GFXDExceptionData>(other.nextExceptions.size()); for (GFXDExceptionData other_element : other.nextExceptions) { __this__nextExceptions.add(new GFXDExceptionData(other_element)); } this.nextExceptions = __this__nextExceptions; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, GFXDException struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.exceptionData != null) { oprot.writeFieldBegin(EXCEPTION_DATA_FIELD_DESC); struct.exceptionData.write(oprot); oprot.writeFieldEnd(); } if (struct.serverInfo != null) { oprot.writeFieldBegin(SERVER_INFO_FIELD_DESC); oprot.writeString(struct.serverInfo); oprot.writeFieldEnd(); } if (struct.nextExceptions != null) { if (struct.isSetNextExceptions()) { oprot.writeFieldBegin(NEXT_EXCEPTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.nextExceptions.size())); for (GFXDExceptionData _iter253 : struct.nextExceptions) { _iter253.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public boolean equals(GFXDException that) { if (that == null) return false; boolean this_present_exceptionData = true && this.isSetExceptionData(); boolean that_present_exceptionData = true && that.isSetExceptionData(); if (this_present_exceptionData || that_present_exceptionData) { if (!(this_present_exceptionData && that_present_exceptionData)) return false; if (!this.exceptionData.equals(that.exceptionData)) return false; } boolean this_present_serverInfo = true && this.isSetServerInfo(); boolean that_present_serverInfo = true && that.isSetServerInfo(); if (this_present_serverInfo || that_present_serverInfo) { if (!(this_present_serverInfo && that_present_serverInfo)) return false; if (!this.serverInfo.equals(that.serverInfo)) return false; } boolean this_present_nextExceptions = true && this.isSetNextExceptions(); boolean that_present_nextExceptions = true && that.isSetNextExceptions(); if (this_present_nextExceptions || that_present_nextExceptions) { if (!(this_present_nextExceptions && that_present_nextExceptions)) return false; if (!this.nextExceptions.equals(that.nextExceptions)) return false; } return true; }