@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tenantId = true && (isSetTenantId()); list.add(present_tenantId); if (present_tenantId) list.add(tenantId); boolean present_applicationToken = true && (isSetApplicationToken()); list.add(present_applicationToken); if (present_applicationToken) list.add(applicationToken); boolean present_entityType = true && (isSetEntityType()); list.add(present_entityType); if (present_entityType) list.add(entityType.getValue()); boolean present_entityId = true && (isSetEntityId()); list.add(present_entityId); if (present_entityId) list.add(entityId); 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 TENANT_ID: return isSetTenantId(); case APPLICATION_TOKEN: return isSetApplicationToken(); case ENTITY_TYPE: return isSetEntityType(); case ENTITY_ID: return isSetEntityId(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetTenantId()).compareTo(other.isSetTenantId()); if (lastComparison != 0) { return lastComparison; if (isSetTenantId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tenantId, other.tenantId); if (lastComparison != 0) {
return false; boolean this_present_tenantId = true && this.isSetTenantId(); boolean that_present_tenantId = true && that.isSetTenantId(); if (this_present_tenantId || that_present_tenantId) { if (!(this_present_tenantId && that_present_tenantId))
/** * Performs a deep copy on <i>other</i>. */ public ThriftEntityAddress(ThriftEntityAddress other) { if (other.isSetTenantId()) { this.tenantId = other.tenantId; } if (other.isSetApplicationToken()) { this.applicationToken = other.applicationToken; } if (other.isSetEntityType()) { this.entityType = other.entityType; } if (other.isSetEntityId()) { this.entityId = org.apache.thrift.TBaseHelper.copyBinary(other.entityId); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ThriftEntityAddress struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTenantId()) { optionals.set(0); } if (struct.isSetApplicationToken()) { optionals.set(1); } if (struct.isSetEntityType()) { optionals.set(2); } if (struct.isSetEntityId()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTenantId()) { oprot.writeString(struct.tenantId); } if (struct.isSetApplicationToken()) { oprot.writeString(struct.applicationToken); } if (struct.isSetEntityType()) { oprot.writeI32(struct.entityType.getValue()); } if (struct.isSetEntityId()) { oprot.writeBinary(struct.entityId); } }