/** * Performs a deep copy on <i>other</i>. */ public ErrorInfo(ErrorInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_error()) { this.error = other.error; } this.errorTimeSecs = other.errorTimeSecs; if (other.is_set_errorLevel()) { this.errorLevel = other.errorLevel; } this.errorCode = other.errorCode; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_error = true && (is_set_error()); list.add(present_error); if (present_error) list.add(error); boolean present_errorTimeSecs = true; list.add(present_errorTimeSecs); if (present_errorTimeSecs) list.add(errorTimeSecs); boolean present_errorLevel = true && (is_set_errorLevel()); list.add(present_errorLevel); if (present_errorLevel) list.add(errorLevel); boolean present_errorCode = true; list.add(present_errorCode); if (present_errorCode) list.add(errorCode); return list.hashCode(); }
boolean this_present_errorLevel = true && this.is_set_errorLevel(); boolean that_present_errorLevel = true && that.is_set_errorLevel(); if (this_present_errorLevel || that_present_errorLevel) { if (!(this_present_errorLevel && that_present_errorLevel))
/** 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 ERROR: return is_set_error(); case ERROR_TIME_SECS: return is_set_errorTimeSecs(); case ERROR_LEVEL: return is_set_errorLevel(); case ERROR_CODE: return is_set_errorCode(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_errorLevel()).compareTo(other.is_set_errorLevel()); if (lastComparison != 0) { return lastComparison; if (is_set_errorLevel()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorLevel, other.errorLevel); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_errorTimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorTimeSecs' is unset! Struct:" + toString()); } if (!is_set_errorLevel()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorLevel' is unset! Struct:" + toString()); } if (!is_set_errorCode()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorCode' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** * Performs a deep copy on <i>other</i>. */ public ErrorInfo(ErrorInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_error()) { this.error = other.error; } this.errorTimeSecs = other.errorTimeSecs; if (other.is_set_errorLevel()) { this.errorLevel = other.errorLevel; } this.errorCode = other.errorCode; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_error = true && (is_set_error()); list.add(present_error); if (present_error) list.add(error); boolean present_errorTimeSecs = true; list.add(present_errorTimeSecs); if (present_errorTimeSecs) list.add(errorTimeSecs); boolean present_errorLevel = true && (is_set_errorLevel()); list.add(present_errorLevel); if (present_errorLevel) list.add(errorLevel); boolean present_errorCode = true; list.add(present_errorCode); if (present_errorCode) list.add(errorCode); return list.hashCode(); }
boolean this_present_errorLevel = true && this.is_set_errorLevel(); boolean that_present_errorLevel = true && that.is_set_errorLevel(); if (this_present_errorLevel || that_present_errorLevel) { if (!(this_present_errorLevel && that_present_errorLevel))
/** 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 ERROR: return is_set_error(); case ERROR_TIME_SECS: return is_set_errorTimeSecs(); case ERROR_LEVEL: return is_set_errorLevel(); case ERROR_CODE: return is_set_errorCode(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_errorLevel()).compareTo(other.is_set_errorLevel()); if (lastComparison != 0) { return lastComparison; if (is_set_errorLevel()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorLevel, other.errorLevel); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_errorTimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorTimeSecs' is unset! Struct:" + toString()); } if (!is_set_errorLevel()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorLevel' is unset! Struct:" + toString()); } if (!is_set_errorCode()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorCode' is unset! Struct:" + toString()); } // check for sub-struct validity }