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