/** * 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; }
/** 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(); }
/** 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_error_time_secs(); } throw new IllegalStateException(); }
public boolean equals(ErrorInfo that) { if (that == null) return false; boolean this_present_error = true && this.is_set_error(); boolean that_present_error = true && that.is_set_error(); if (this_present_error || that_present_error) { if (!(this_present_error && that_present_error)) return false; if (!this.error.equals(that.error)) return false; } boolean this_present_error_time_secs = true; boolean that_present_error_time_secs = true; if (this_present_error_time_secs || that_present_error_time_secs) { if (!(this_present_error_time_secs && that_present_error_time_secs)) return false; if (this.error_time_secs != that.error_time_secs) return false; } return true; }
lastComparison = Boolean.valueOf(is_set_error()).compareTo(other.is_set_error()); if (lastComparison != 0) { return lastComparison; if (is_set_error()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); if (lastComparison != 0) {
public int compareTo(ErrorInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ErrorInfo typedOther = (ErrorInfo)other; lastComparison = Boolean.valueOf(is_set_error()).compareTo(typedOther.is_set_error()); if (lastComparison != 0) { return lastComparison; } if (is_set_error()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.error, typedOther.error); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_error_time_secs()).compareTo(typedOther.is_set_error_time_secs()); if (lastComparison != 0) { return lastComparison; } if (is_set_error_time_secs()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.error_time_secs, typedOther.error_time_secs); if (lastComparison != 0) { return lastComparison; } } return 0; }
return false; boolean this_present_error = true && this.is_set_error(); boolean that_present_error = true && that.is_set_error(); if (this_present_error || that_present_error) { if (!(this_present_error && that_present_error))
/** * Performs a deep copy on <i>other</i>. */ public ErrorInfo(ErrorInfo other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_error()) { this.error = other.error; } this.error_time_secs = other.error_time_secs; }
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 }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_error_time_secs()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'error_time_secs' is unset! Struct:" + toString()); } }
@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(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_error = true && (is_set_error()); builder.append(present_error); if (present_error) builder.append(error); boolean present_error_time_secs = true; builder.append(present_error_time_secs); if (present_error_time_secs) builder.append(error_time_secs); return builder.toHashCode(); }
/** 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(); }
/** 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_error_time_secs(); } throw new IllegalStateException(); }
/** * 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; }
/** * Performs a deep copy on <i>other</i>. */ public ErrorInfo(ErrorInfo other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_error()) { this.error = other.error; } this.error_time_secs = other.error_time_secs; }
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 }
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_error_time_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error_time_secs' is unset! Struct:" + toString()); } }
@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(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_error = true && (is_set_error()); builder.append(present_error); if (present_error) builder.append(error); boolean present_error_time_secs = true; builder.append(present_error_time_secs); if (present_error_time_secs) builder.append(error_time_secs); return builder.toHashCode(); }