blob: 8bf2ebfd0922b0a51128d9dcf0586b8de5d17133 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;
import java.util.Map;
/**
* @author jvenstad
* @author mortent
*/
public class ProjectInfo {
private final String id;
private final Map<String, String> componentIds;
public ProjectInfo(String id, Map<String, String> componentIds) {
this.id = id;
this.componentIds = componentIds;
}
public boolean hasComponent(String component) {
return componentIds.containsKey(component);
}
public String id() {
return id;
}
public Map<String, String> componentIds() {
return componentIds;
}
}
|