public class LicenseMap extends TreeMap<String,SortedSet<org.apache.maven.project.MavenProject>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
UNKNOWN_LICENSE_MESSAGE |
| Constructor and Description |
|---|
LicenseMap()
Default contructor.
|
| Modifier and Type | Method and Description |
|---|---|
SortedSet<org.apache.maven.project.MavenProject> |
put(String key,
org.apache.maven.project.MavenProject value)
Store in the license map a project to a given license.
|
void |
putAll(LicenseMap licenseMap)
Store in the license other licenseMap.
|
void |
removeEmptyLicenses() |
void |
removeProject(org.apache.maven.project.MavenProject project) |
SortedMap<org.apache.maven.project.MavenProject,String[]> |
toDependencyMap()
Build a dependencies map from the license map, this is a map of license for each project registered in the
license map.
|
LicenseMap |
toLicenseMapOrderByName() |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removepublic static final String UNKNOWN_LICENSE_MESSAGE
public SortedSet<org.apache.maven.project.MavenProject> put(String key, org.apache.maven.project.MavenProject value)
key - the license on which to associate the gieven projectvalue - project to register in the license mappublic void putAll(LicenseMap licenseMap)
licenseMap - license map to putpublic SortedMap<org.apache.maven.project.MavenProject,String[]> toDependencyMap()
public LicenseMap toLicenseMapOrderByName()
public void removeProject(org.apache.maven.project.MavenProject project)
public void removeEmptyLicenses()
Copyright © 2010–2023. All rights reserved.