@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_routeInfo = true && (isSetRouteInfo()); list.add(present_routeInfo); if (present_routeInfo) list.add(routeInfo); boolean present_operationsServerId = true && (isSetOperationsServerId()); list.add(present_operationsServerId); if (present_operationsServerId) list.add(operationsServerId); 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 ROUTE_INFO: return isSetRouteInfo(); case OPERATIONS_SERVER_ID: return isSetOperationsServerId(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public EventRoute(EventRoute other) { if (other.isSetUserId()) { this.userId = other.userId; } if (other.isSetTenantId()) { this.tenantId = other.tenantId; } if (other.isSetRouteInfo()) { List<RouteInfo> __this__routeInfo = new ArrayList<RouteInfo>(other.routeInfo.size()); for (RouteInfo other_element : other.routeInfo) { __this__routeInfo.add(new RouteInfo(other_element)); } this.routeInfo = __this__routeInfo; } if (other.isSetOperationsServerId()) { this.operationsServerId = other.operationsServerId; } }
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(other.isSetUserId()); if (lastComparison != 0) { return lastComparison; if (isSetUserId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, other.userId); if (lastComparison != 0) {
return false; boolean this_present_userId = true && this.isSetUserId(); boolean that_present_userId = true && that.isSetUserId(); if (this_present_userId || that_present_userId) { if (!(this_present_userId && that_present_userId))
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserId()) { optionals.set(0); if (struct.isSetUserId()) { oprot.writeString(struct.userId);