Skip to content

Package: InventoryMetrics

InventoryMetrics

nameinstructionbranchcomplexitylinemethod
InventoryMetrics(String, int, String)
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%
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%
getValue()
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%
static {...}
M: 26 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
toString()
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%

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.service.device.call.kura.model.inventory;
14:
15: import org.eclipse.kapua.service.device.call.message.DeviceMetrics;
16: import org.eclipse.kapua.service.device.call.message.app.DeviceAppMetrics;
17:
18: /**
19: * Inventory {@link DeviceMetrics}.
20: *
21: * @since 1.5.0
22: */
23: public enum InventoryMetrics implements DeviceAppMetrics {
24:
25: /**
26: * Application identifier.
27: *
28: * @since 1.5.0
29: */
30: APP_ID("INVENTORY"),
31:
32: /**
33: * Application version.
34: *
35: * @since 1.5.0
36: */
37: APP_VERSION("V1"),
38: ;
39:
40: /**
41: * The name of the metric.
42: *
43: * @since 1.5.0
44: */
45: private final String name;
46:
47: /**
48: * Constructor.
49: *
50: * @param name The name of the metric.
51: * @since 1.5.0
52: */
53: InventoryMetrics(String name) {
54: this.name = name;
55: }
56:
57: /**
58: * Gets the value property associated to this specific enumeration key.
59: *
60: * @return the value property associated to this specific enumeration key.
61: * @since 1.5.0
62: * @deprecated Since 1.2.0. Renamed to {@link #getName()}.
63: */
64: @Deprecated
65: public String getValue() {
66: return getName();
67: }
68:
69: @Override
70: public String getName() {
71: return name;
72: }
73:
74: @Override
75: public String toString() {
76: return getName();
77: }
78: }