/** 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 REVISION: return isSetRevision(); case TYPE: return isSetType(); case CONTENT: return isSetContent(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); 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 REVISION: return isSetRevision(); case TYPE: return isSetType(); case CONTENT: return isSetContent(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); return list.hashCode(); }
boolean first = true; if (isSetRevision()) { sb.append("revision:"); if (this.revision == null) {
boolean first = true; if (isSetRevision()) { sb.append("revision:"); if (this.revision == null) {
lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) {
public void write(org.apache.thrift.protocol.TProtocol oprot, WatchFileResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.revision != null) { if (struct.isSetRevision()) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } } if (struct.type != null) { if (struct.isSetType()) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } } if (struct.content != null) { if (struct.isSetContent()) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, WatchFileResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.revision != null) { if (struct.isSetRevision()) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } } if (struct.type != null) { if (struct.isSetType()) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } } if (struct.content != null) { if (struct.isSetContent()) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * Performs a deep copy on <i>other</i>. */ public WatchFileResult(WatchFileResult other) { if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
/** * Performs a deep copy on <i>other</i>. */ public WatchFileResult(WatchFileResult other) { if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, WatchFileResult struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRevision()) { optionals.set(0); } if (struct.isSetType()) { optionals.set(1); } if (struct.isSetContent()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetType()) { oprot.writeI32(struct.type.getValue()); } if (struct.isSetContent()) { oprot.writeString(struct.content); } }
public boolean equals(WatchFileResult that) { if (that == null) return false; boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }
public boolean equals(WatchFileResult that) { if (that == null) return false; boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, WatchFileResult struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRevision()) { optionals.set(0); } if (struct.isSetType()) { optionals.set(1); } if (struct.isSetContent()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetType()) { oprot.writeI32(struct.type.getValue()); } if (struct.isSetContent()) { oprot.writeString(struct.content); } }