Search in sources :

Example 1 with TrackingIdAttribute

use of com.google.gerrit.server.data.TrackingIdAttribute in project gerrit by GerritCodeReview.

the class EventFactory method addTrackingIds.

public void addTrackingIds(ChangeAttribute a, ListMultimap<String, String> set) {
    if (!set.isEmpty()) {
        a.trackingIds = new ArrayList<>(set.size());
        for (Map.Entry<String, Collection<String>> e : set.asMap().entrySet()) {
            for (String id : e.getValue()) {
                TrackingIdAttribute t = new TrackingIdAttribute();
                t.system = e.getKey();
                t.id = id;
                a.trackingIds.add(t);
            }
        }
    }
}
Also used : TrackingIdAttribute(com.google.gerrit.server.data.TrackingIdAttribute) Collection(java.util.Collection) Map(java.util.Map)

Aggregations

TrackingIdAttribute (com.google.gerrit.server.data.TrackingIdAttribute)1 Collection (java.util.Collection)1 Map (java.util.Map)1