/** * Performs a deep copy on <i>other</i>. */ public Data(Data other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetBodyHash()) { this.bodyHash = new byte[other.bodyHash.length]; System.arraycopy(other.bodyHash, 0, bodyHash, 0, other.bodyHash.length); } this.size = other.size; if (other.isSetBody()) { this.body = new byte[other.body.length]; System.arraycopy(other.body, 0, body, 0, other.body.length); } }
/** * Performs a deep copy on <i>other</i>. */ public Data(Data other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetBodyHash()) { this.bodyHash = new byte[other.bodyHash.length]; System.arraycopy(other.bodyHash, 0, bodyHash, 0, other.bodyHash.length); } this.size = other.size; if (other.isSetBody()) { this.body = new byte[other.body.length]; System.arraycopy(other.body, 0, body, 0, other.body.length); } }
public boolean equals(Data that) { if (that == null) return false; boolean this_present_bodyHash = true && this.isSetBodyHash(); boolean that_present_bodyHash = true && that.isSetBodyHash(); if (this_present_bodyHash || that_present_bodyHash) { if (!(this_present_bodyHash && that_present_bodyHash)) return false; if (TBaseHelper.compareTo(this.bodyHash, that.bodyHash) != 0) return false; } boolean this_present_size = true && this.isSetSize(); boolean that_present_size = true && that.isSetSize(); if (this_present_size || that_present_size) { if (!(this_present_size && that_present_size)) return false; if (this.size != that.size) return false; } boolean this_present_body = true && this.isSetBody(); boolean that_present_body = true && that.isSetBody(); if (this_present_body || that_present_body) { if (!(this_present_body && that_present_body)) return false; if (TBaseHelper.compareTo(this.body, that.body) != 0) return false; } return true; }
public boolean equals(Data that) { if (that == null) return false; boolean this_present_bodyHash = true && this.isSetBodyHash(); boolean that_present_bodyHash = true && that.isSetBodyHash(); if (this_present_bodyHash || that_present_bodyHash) { if (!(this_present_bodyHash && that_present_bodyHash)) return false; if (TBaseHelper.compareTo(this.bodyHash, that.bodyHash) != 0) return false; } boolean this_present_size = true && this.isSetSize(); boolean that_present_size = true && that.isSetSize(); if (this_present_size || that_present_size) { if (!(this_present_size && that_present_size)) return false; if (this.size != that.size) return false; } boolean this_present_body = true && this.isSetBody(); boolean that_present_body = true && that.isSetBody(); if (this_present_body || that_present_body) { if (!(this_present_body && that_present_body)) return false; if (TBaseHelper.compareTo(this.body, that.body) != 0) return false; } return true; }
first = false; if (isSetBody()) { if (!first) sb.append(", "); sb.append("body:");
first = false; if (isSetBody()) { if (!first) sb.append(", "); sb.append("body:");
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.bodyHash != null) { if (isSetBodyHash()) { oprot.writeFieldBegin(BODY_HASH_FIELD_DESC); oprot.writeBinary(this.bodyHash); oprot.writeFieldEnd(); } } if (isSetSize()) { oprot.writeFieldBegin(SIZE_FIELD_DESC); oprot.writeI32(this.size); oprot.writeFieldEnd(); } if (this.body != null) { if (isSetBody()) { oprot.writeFieldBegin(BODY_FIELD_DESC); oprot.writeBinary(this.body); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.bodyHash != null) { if (isSetBodyHash()) { oprot.writeFieldBegin(BODY_HASH_FIELD_DESC); oprot.writeBinary(this.bodyHash); oprot.writeFieldEnd(); } } if (isSetSize()) { oprot.writeFieldBegin(SIZE_FIELD_DESC); oprot.writeI32(this.size); oprot.writeFieldEnd(); } if (this.body != null) { if (isSetBody()) { oprot.writeFieldBegin(BODY_FIELD_DESC); oprot.writeBinary(this.body); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }