Package org.eclipse.tycho.p2.repository
Interface TychoRepositoryIndex
-
- All Known Implementing Classes:
FileBasedTychoRepositoryIndex
public interface TychoRepositoryIndex
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddGav(GAV gav)Adds a GAV to the indexjava.util.Set<GAV>getProjectGAVs()Receive the set of GAVs contained in this indexvoidremoveGav(GAV gav)Remove a GAV from the index.voidsave()Changes performed viaaddGav(GAV),removeGav(GAV)will only be reflected in the memory state of the index.
-
-
-
Method Detail
-
getProjectGAVs
java.util.Set<GAV> getProjectGAVs()
Receive the set of GAVs contained in this index- Returns:
- an unmodifiable defensive copy of the GAV set contained in this index
-
addGav
void addGav(GAV gav)
Adds a GAV to the index- Parameters:
gav- notnull
-
removeGav
void removeGav(GAV gav)
Remove a GAV from the index.- Parameters:
gav-
-
save
void save() throws java.io.IOException
Changes performed viaaddGav(GAV),removeGav(GAV)will only be reflected in the memory state of the index. In case the index is bound some persistence location (e.g. a file seeFileBasedTychoRepositoryIndex#createArtifactsIndex(java.io.File)) the method will store the current memory content to the persistence storage.- Throws:
java.io.IOException
-
-