Search in sources :

Example 6 with GroupDescriptor

use of com.intellij.internal.statistic.beans.GroupDescriptor in project intellij-community by JetBrains.

the class StatisticsUploadAssistantTest method createPatchDescriptor.

private static void createPatchDescriptor(Map<GroupDescriptor, Set<PatchedUsage>> patchedUsages, String groupId, double priority, String key, int i) {
    final GroupDescriptor groupDescriptor = GroupDescriptor.create(groupId, priority);
    if (!patchedUsages.containsKey(groupDescriptor)) {
        patchedUsages.put(groupDescriptor, new LinkedHashSet<>());
    }
    patchedUsages.get(groupDescriptor).add(new PatchedUsage(key, i));
}
Also used : PatchedUsage(com.intellij.internal.statistic.beans.PatchedUsage) GroupDescriptor(com.intellij.internal.statistic.beans.GroupDescriptor)

Aggregations

GroupDescriptor (com.intellij.internal.statistic.beans.GroupDescriptor)6 Map (java.util.Map)3 Set (java.util.Set)3 Element (org.jdom.Element)3 LinkedHashMap (com.intellij.util.containers.hash.LinkedHashMap)2 LinkedHashSet (java.util.LinkedHashSet)2 PatchedUsage (com.intellij.internal.statistic.beans.PatchedUsage)1 UsageDescriptor (com.intellij.internal.statistic.beans.UsageDescriptor)1 HashMap (com.intellij.util.containers.hash.HashMap)1 THashSet (gnu.trove.THashSet)1