blob: d8b2446c996ed64310ce4eee44a872fdc1779bf0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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.internal.provisional.p2.artifact.repository.IArtifactRepository;
import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey;
/**
* 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;
}
}