Skip to content

Package: EndPointContainer

EndPointContainer

nameinstructionbranchcomplexitylinemethod
EndPointContainer()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getEndPoints()
M: 11 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
setEndPoints(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) 2017, 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.broker.core.router;
14:
15: import javax.xml.bind.annotation.XmlAccessType;
16: import javax.xml.bind.annotation.XmlAccessorType;
17: import javax.xml.bind.annotation.XmlAnyElement;
18: import javax.xml.bind.annotation.XmlRootElement;
19: import javax.xml.bind.annotation.XmlType;
20: import java.util.ArrayList;
21: import java.util.List;
22:
23: @XmlRootElement(name = "endPoints")
24: @XmlAccessorType(XmlAccessType.PROPERTY)
25: @XmlType(propOrder = {
26: "endPoints"
27: })
28: public class EndPointContainer {
29:
30: private List<EndPoint> endPoints;
31:
32: public EndPointContainer() {
33: }
34:
35: @XmlAnyElement
36: public List<EndPoint> getEndPoints() {
37:• if (endPoints == null) {
38: endPoints = new ArrayList<>();
39: }
40:
41: return endPoints;
42: }
43:
44: public void setEndPoints(List<EndPoint> endPoints) {
45: this.endPoints = endPoints;
46: }
47:
48: }