@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_exceptionData = true && (isSetExceptionData()); list.add(present_exceptionData); if (present_exceptionData) list.add(exceptionData); boolean present_serverInfo = true && (isSetServerInfo()); list.add(present_serverInfo); if (present_serverInfo) list.add(serverInfo); boolean present_nextExceptions = true && (isSetNextExceptions()); list.add(present_nextExceptions); if (present_nextExceptions) list.add(nextExceptions); 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 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 SnappyException(SnappyException other) { if (other.isSetExceptionData()) { this.exceptionData = new SnappyExceptionData(other.exceptionData); } if (other.isSetServerInfo()) { this.serverInfo = other.serverInfo; } if (other.isSetNextExceptions()) { List<SnappyExceptionData> __this__nextExceptions = new ArrayList<SnappyExceptionData>(other.nextExceptions.size()); for (SnappyExceptionData other_element : other.nextExceptions) { __this__nextExceptions.add(new SnappyExceptionData(other_element)); } this.nextExceptions = __this__nextExceptions; } }
public boolean equals(SnappyException 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; }