/** 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
BinaryAnnotation typedOther = (BinaryAnnotation)other; lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) {
BinaryAnnotation typedOther = (BinaryAnnotation)other; lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) {
BinaryAnnotation typedOther = (BinaryAnnotation)other; lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }