/** 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(isSetServerInfo()).compareTo(other.isSetServerInfo()); if (lastComparison != 0) { return lastComparison; if (isSetServerInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverInfo, other.serverInfo); if (lastComparison != 0) {
/** * 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 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; }