@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_operationsServersList = true && (isSetOperationsServersList()); list.add(present_operationsServersList); if (present_operationsServersList) list.add(operationsServersList); 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 OPERATIONS_SERVERS_LIST: return isSetOperationsServersList(); } throw new IllegalStateException(); }
@Override public int compareTo(onOperationsServerListUpdate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetOperationsServersList()).compareTo(other.isSetOperationsServersList()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationsServersList()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationsServersList, other.operationsServersList); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, onOperationsServerListUpdate_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetOperationsServersList()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetOperationsServersList()) { { oprot.writeI32(struct.operationsServersList.size()); for (ThriftOperationsServer _iter4 : struct.operationsServersList) { _iter4.write(oprot); } } } }
public boolean equals(onOperationsServerListUpdate_args that) { if (that == null) return false; boolean this_present_operationsServersList = true && this.isSetOperationsServersList(); boolean that_present_operationsServersList = true && that.isSetOperationsServersList(); if (this_present_operationsServersList || that_present_operationsServersList) { if (!(this_present_operationsServersList && that_present_operationsServersList)) return false; if (!this.operationsServersList.equals(that.operationsServersList)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public onOperationsServerListUpdate_args(onOperationsServerListUpdate_args other) { if (other.isSetOperationsServersList()) { this.operationsServersList = other.operationsServersList; } }