/** 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 INITIAL_STATUS: return is_set_initial_status(); case CREDS: return is_set_creds(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_initial_status = true && (is_set_initial_status()); list.add(present_initial_status); if (present_initial_status) list.add(initial_status.getValue()); boolean present_creds = true && (is_set_creds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); }
@Override public int compareTo(SubmitOptions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_initial_status()).compareTo(other.is_set_initial_status()); if (lastComparison != 0) { return lastComparison; } if (is_set_initial_status()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initial_status, other.initial_status); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_creds()).compareTo(other.is_set_creds()); if (lastComparison != 0) { return lastComparison; } if (is_set_creds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
public boolean equals(SubmitOptions that) { if (that == null) return false; boolean this_present_initial_status = true && this.is_set_initial_status(); boolean that_present_initial_status = true && that.is_set_initial_status(); if (this_present_initial_status || that_present_initial_status) { if (!(this_present_initial_status && that_present_initial_status)) return false; if (!this.initial_status.equals(that.initial_status)) return false; } boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } // check for sub-struct validity if (creds != null) { creds.validate(); } }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } }
/** 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 INITIAL_STATUS: return is_set_initial_status(); } throw new IllegalStateException(); }
public boolean equals(SubmitOptions that) { if (that == null) return false; boolean this_present_initial_status = true && this.is_set_initial_status(); boolean that_present_initial_status = true && that.is_set_initial_status(); if (this_present_initial_status || that_present_initial_status) { if (!(this_present_initial_status && that_present_initial_status)) return false; if (!this.initial_status.equals(that.initial_status)) return false; } return true; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_initial_status = true && (is_set_initial_status()); builder.append(present_initial_status); if (present_initial_status) builder.append(initial_status.getValue()); return builder.toHashCode(); }
public int compareTo(SubmitOptions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; SubmitOptions typedOther = (SubmitOptions)other; lastComparison = Boolean.valueOf(is_set_initial_status()).compareTo(typedOther.is_set_initial_status()); if (lastComparison != 0) { return lastComparison; } if (is_set_initial_status()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initial_status, typedOther.initial_status); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** 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 INITIAL_STATUS: return is_set_initial_status(); case CREDS: return is_set_creds(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_initial_status = true && (is_set_initial_status()); list.add(present_initial_status); if (present_initial_status) list.add(initial_status.getValue()); boolean present_creds = true && (is_set_creds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); }
@Override public int compareTo(SubmitOptions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_initial_status()).compareTo(other.is_set_initial_status()); if (lastComparison != 0) { return lastComparison; } if (is_set_initial_status()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initial_status, other.initial_status); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_creds()).compareTo(other.is_set_creds()); if (lastComparison != 0) { return lastComparison; } if (is_set_creds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
public boolean equals(SubmitOptions that) { if (that == null) return false; boolean this_present_initial_status = true && this.is_set_initial_status(); boolean that_present_initial_status = true && that.is_set_initial_status(); if (this_present_initial_status || that_present_initial_status) { if (!(this_present_initial_status && that_present_initial_status)) return false; if (!this.initial_status.equals(that.initial_status)) return false; } boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } // check for sub-struct validity if (creds != null) { creds.validate(); } }