@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_commandLine = true && (isSetCommandLine()); list.add(present_commandLine); if (present_commandLine) list.add(commandLine); return list.hashCode(); }
@Override public int compareTo(executeCommand_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCommandLine()).compareTo(other.isSetCommandLine()); if (lastComparison != 0) { return lastComparison; } if (isSetCommandLine()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commandLine, other.commandLine); 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 COMMAND_LINE: return isSetCommandLine(); } throw new IllegalStateException(); }
public boolean equals(executeCommand_args that) { if (that == null) return false; boolean this_present_commandLine = true && this.isSetCommandLine(); boolean that_present_commandLine = true && that.isSetCommandLine(); if (this_present_commandLine || that_present_commandLine) { if (!(this_present_commandLine && that_present_commandLine)) return false; if (!this.commandLine.equals(that.commandLine)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public executeCommand_args(executeCommand_args other) { if (other.isSetCommandLine()) { this.commandLine = other.commandLine; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, executeCommand_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCommandLine()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCommandLine()) { oprot.writeString(struct.commandLine); } }