/** 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 TIMESTAMP: return isSetTimestamp(); case VALUE: return isSetValue(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
/** 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 TIMESTAMP: return isSetTimestamp(); case VALUE: return isSetValue(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
public boolean equals(Annotation that) { if (that == null) return false; boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_host = true && this.isSetHost(); boolean that_present_host = true && that.isSetHost(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host)) return false; if (!this.host.equals(that.host)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } this.duration = other.duration; }
/** 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 TIMESTAMP: return isSetTimestamp(); case VALUE: return isSetValue(); case HOST: return isSetHost(); case DURATION: return isSetDuration(); } throw new IllegalStateException(); }
public boolean equals(Annotation that) { if (that == null) return false; boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_host = true && this.isSetHost(); boolean that_present_host = true && that.isSetHost(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host)) return false; if (!this.host.equals(that.host)) return false; } return true; }
lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } }
boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } if (struct.isSetDuration()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } if (struct.isSetDuration()) { oprot.writeI32(struct.duration); } }