Skip to content

Commit

Permalink
Add PluginMetadata.getDependenciesById
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-gh committed Nov 17, 2016
1 parent c7b7da2 commit 6222a91
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ public Collection<PluginDependency> getDependencies() {
return this.dependencies.values();
}

/**
* Returns a {@link Map} with all dependencies grouped by their plugin ID.
*
* @return A map with all dependencies and their plugin IDs
*/
public Map<String, PluginDependency> getDependenciesById() {
return Collections.unmodifiableMap(this.dependencies);
}

/**
* Collects all dependencies of this {@link PluginMetadata} that are not
* optional.
Expand Down

0 comments on commit 6222a91

Please sign in to comment.