/** * Performs a deep copy on <i>other</i>. */ public TSentryResponseStatus(TSentryResponseStatus other) { __isset_bitfield = other.__isset_bitfield; this.value = other.value; if (other.isSetMessage()) { this.message = other.message; } if (other.isSetStack()) { this.stack = other.stack; } }
/** * Performs a deep copy on <i>other</i>. */ public TSentryResponseStatus(TSentryResponseStatus other) { __isset_bitfield = other.__isset_bitfield; this.value = other.value; if (other.isSetMessage()) { this.message = other.message; } if (other.isSetStack()) { this.stack = other.stack; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_value = true; list.add(present_value); if (present_value) list.add(value); boolean present_message = true && (isSetMessage()); list.add(present_message); if (present_message) list.add(message); boolean present_stack = true && (isSetStack()); list.add(present_stack); if (present_stack) list.add(stack); return list.hashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true; builder.append(present_value); if (present_value) builder.append(value); boolean present_message = true && (isSetMessage()); builder.append(present_message); if (present_message) builder.append(message); boolean present_stack = true && (isSetStack()); builder.append(present_stack); if (present_stack) builder.append(stack); 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
public boolean equals(TSentryResponseStatus that) { if (that == null) return false; boolean this_present_value = true; boolean that_present_value = true; if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (this.value != that.value) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } boolean this_present_stack = true && this.isSetStack(); boolean that_present_stack = true && that.isSetStack(); if (this_present_stack || that_present_stack) { if (!(this_present_stack && that_present_stack)) return false; if (!this.stack.equals(that.stack)) return false; } return true; }
public boolean equals(TSentryResponseStatus that) { if (that == null) return false; boolean this_present_value = true; boolean that_present_value = true; if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (this.value != that.value) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } boolean this_present_stack = true && this.isSetStack(); boolean that_present_stack = true && that.isSetStack(); if (this_present_stack || that_present_stack) { if (!(this_present_stack && that_present_stack)) return false; if (!this.stack.equals(that.stack)) return false; } return true; }
/** 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; if (isSetMessage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; if (isSetMessage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetValue()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetValue()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }