<commit_before>/*
 * Copyright (c) OSGi Alliance (2008). All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.osgi.service.framework;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Describes the packages and services which are shared from a source framework
 * to a target framework through a <code>FrameworkLink</code>.
 * 
 * @see FrameworkLink
 * 
 * @ThreadSafe
 * @Immutable
 * @version $Revision$
 */
// TODO javadoc needs review
// TODO do we need to specify the start-level for the source and target bundles?
// (Bug 813)
public final class LinkDescription {
	private final List/* <String> */imports;
	private final List/* <String> */serviceFilters;

	/**
	 * Creates a link description that specifies the packages and services to
	 * share from a source framework to a target framework
	 * 
	 * @param imports
	 *            a list of type <code>String</code>. Each element of the list
	 *            is an import package specification that specifies a package to
	 *            import from a source framework.
	 * @param serviceFilters<commit_msg>Remove ThreadSafe tag (since LinkDescription is Immutable)<commit_after>/*
 * Copyright (c) OSGi Alliance (2008). All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.osgi.service.framework;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Describes the packages and services which are shared from a source framework
 * to a target framework through a <code>FrameworkLink</code>.
 * 
 * @see FrameworkLink
 * 
 * @Immutable
 * @version $Revision$
 */
// TODO javadoc needs review
// TODO do we need to specify the start-level for the source and target bundles?
// (Bug 813)
public final class LinkDescription {
	private final List/* <String> */imports;
	private final List/* <String> */serviceFilters;

	/**
	 * Creates a link description that specifies the packages and services to
	 * share from a source framework to a target framework
	 * 
	 * @param imports
	 *            a list of type <code>String</code>. Each element of the list
	 *            is an import package specification that specifies a package to
	 *            import from a source framework.
	 * @param serviceFilters
{'fraction_non_alphanumeric': 0.08016877637130802, 'fraction_numerical': 0.006630500301386378, 'mean_word_length': 3.461021505376344, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661407', 'n_tokens_mistral': 875, 'n_tokens_neox': 819, 'n_words': 410}