blob: a9b9966995c9a96d9da71e45ec841757d681b6b3 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2012, 2017 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.r.core.pkgmanager;
import java.util.List;
import org.eclipse.statet.rj.renv.core.RPkg;
public interface IRPkgCollection<T extends RPkg> {
/**
* Returns the sorted set with names of all packages in this collection.
*
* @return the package names
*/
List<String> getNames();
boolean containsByName(String name);
List<T> getByName(String name);
T getFirstByName(String name);
List<String> getSources();
IRPkgList<T> getBySource(String source);
List<? extends IRPkgList<T>> getAll();
}