@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_batches = true && (isSetBatches()); list.add(present_batches); if (present_batches) list.add(batches); 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 BATCHES: return isSetBatches(); } throw new IllegalStateException(); }
@Override public int compareTo(submitBatches_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetBatches()).compareTo(other.isSetBatches()); if (lastComparison != 0) { return lastComparison; } if (isSetBatches()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batches, other.batches); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, submitBatches_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetBatches()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetBatches()) { { oprot.writeI32(struct.batches.size()); for (Batch _iter52 : struct.batches) { _iter52.write(oprot); } } } }
public boolean equals(submitBatches_args that) { if (that == null) return false; boolean this_present_batches = true && this.isSetBatches(); boolean that_present_batches = true && that.isSetBatches(); if (this_present_batches || that_present_batches) { if (!(this_present_batches && that_present_batches)) return false; if (!this.batches.equals(that.batches)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public submitBatches_args(submitBatches_args other) { if (other.isSetBatches()) { List<Batch> __this__batches = new ArrayList<Batch>(other.batches.size()); for (Batch other_element : other.batches) { __this__batches.add(new Batch(other_element)); } this.batches = __this__batches; } }