@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_userId = true && (isSetUserId()); list.add(present_userId); if (present_userId) list.add(userId); boolean present_tenantId = true && (isSetTenantId()); list.add(present_tenantId); if (present_tenantId) list.add(tenantId); boolean present_endpointEvent = true && (isSetEndpointEvent()); list.add(present_endpointEvent); if (present_endpointEvent) list.add(endpointEvent); boolean present_routeAddress = true && (isSetRouteAddress()); list.add(present_routeAddress); if (present_routeAddress) list.add(routeAddress); 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 USER_ID: return isSetUserId(); case TENANT_ID: return isSetTenantId(); case ENDPOINT_EVENT: return isSetEndpointEvent(); case ROUTE_ADDRESS: return isSetRouteAddress(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetEndpointEvent()).compareTo(other.isSetEndpointEvent()); if (lastComparison != 0) { return lastComparison; if (isSetEndpointEvent()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endpointEvent, other.endpointEvent); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Event struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserId()) { optionals.set(0); } if (struct.isSetTenantId()) { optionals.set(1); } if (struct.isSetEndpointEvent()) { optionals.set(2); } if (struct.isSetRouteAddress()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetUserId()) { oprot.writeString(struct.userId); } if (struct.isSetTenantId()) { oprot.writeString(struct.tenantId); } if (struct.isSetEndpointEvent()) { struct.endpointEvent.write(oprot); } if (struct.isSetRouteAddress()) { struct.routeAddress.write(oprot); } }
boolean this_present_endpointEvent = true && this.isSetEndpointEvent(); boolean that_present_endpointEvent = true && that.isSetEndpointEvent(); if (this_present_endpointEvent || that_present_endpointEvent) { if (!(this_present_endpointEvent && that_present_endpointEvent))
/** * Performs a deep copy on <i>other</i>. */ public Event(Event other) { if (other.isSetUserId()) { this.userId = other.userId; } if (other.isSetTenantId()) { this.tenantId = other.tenantId; } if (other.isSetEndpointEvent()) { this.endpointEvent = new EndpointEvent(other.endpointEvent); } if (other.isSetRouteAddress()) { this.routeAddress = new RouteAddress(other.routeAddress); } }