Skip to content

Package: Metric

Metric

nameinstructionbranchcomplexitylinemethod
Metric(String, String)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getName()
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%
getType()
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%
setName(String)
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%
setType(String)
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) 2016, 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.service.datastore.internal.mediator;
14:
15: /**
16: * Metric value object.<br>
17: *
18: * @since 1.0
19: */
20: public class Metric {
21:
22: private String name;
23: private String type;
24:
25: /**
26: * Constructs the metric with the provided name and type
27: *
28: * @param name
29: * @param type
30: */
31: public Metric(String name, String type) {
32: this.name = name;
33: this.type = type;
34: }
35:
36: /**
37: * Get the metric name
38: *
39: * @return
40: */
41: public String getName() {
42: return name;
43: }
44:
45: /**
46: * Get the metric type
47: *
48: * @return
49: */
50: public String getType() {
51: return type;
52: }
53:
54: /**
55: * Set the metric name
56: *
57: * @param name
58: */
59: public void setName(String name) {
60: this.name = name;
61: }
62:
63: /**
64: * Set the metric type
65: *
66: * @param type
67: */
68: public void setType(String type) {
69: this.type = type;
70: }
71:
72: }