Skip to content

Package: IsJobRunningMultipleResponse

IsJobRunningMultipleResponse

nameinstructionbranchcomplexitylinemethod
IsJobRunningMultipleResponse()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
IsJobRunningMultipleResponse(Map)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getList()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
lambda$new$0(KapuaId, Boolean)
M: 10 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setMap(List)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.app.api.core.model.job;
14:
15: import java.util.ArrayList;
16: import java.util.List;
17: import java.util.Map;
18:
19: import javax.xml.bind.annotation.XmlElementWrapper;
20:
21: import org.eclipse.kapua.model.id.KapuaId;
22:
23: public class IsJobRunningMultipleResponse {
24:
25: private List<IsJobRunningResponse> list = new ArrayList<>();
26:
27: public IsJobRunningMultipleResponse() {
28: }
29:
30: public IsJobRunningMultipleResponse(Map<KapuaId, Boolean> map) {
31: map.forEach((key, value) -> list.add(new IsJobRunningResponse(key, value)));
32: }
33:
34: @XmlElementWrapper
35: public List<IsJobRunningResponse> getList() {
36: return list;
37: }
38:
39: public void setMap(List<IsJobRunningResponse> list) {
40: this.list = list;
41: }
42:
43: }