Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ba13ffcf1fa03bf0daf2c9fb5c3407cb22244005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2007, 2010 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.internal.p2.garbagecollector;

import org.eclipse.core.runtime.Assert;
import org.eclipse.equinox.p2.metadata.IArtifactKey;
import org.eclipse.equinox.p2.repository.artifact.IArtifactRepository;

/**
 * Wrapper class used to store an IArtifactRepository and its root set of IArtifactKeys.
 */
public class MarkSet {

	/**
	 * The root set for repo.  This is the set of keys that currently map to an artifact in repo.
	 */
	private IArtifactKey[] keys;

	/**
	 * The ArtifactRepository for which a root set is being stored.
	 */
	private IArtifactRepository repo;

	public MarkSet(IArtifactKey[] inKeys, IArtifactRepository inRepo) {
		Assert.isNotNull(inKeys);
		Assert.isNotNull(inRepo);
		keys = inKeys;
		repo = inRepo;
	}

	public IArtifactKey[] getKeys() {
		return keys;
	}

	public IArtifactRepository getRepo() {
		return repo;
	}

}

Back to the top