Skip to content

Package: DeviceConfigurationImpl

DeviceConfigurationImpl

nameinstructionbranchcomplexitylinemethod
DeviceConfigurationImpl()
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%
getComponentConfigurations()
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) 2016, 2020 Eurotech and/or its affiliates and others
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech - initial API and implementation
11: * Red Hat Inc
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.management.configuration.internal;
14:
15: import java.util.ArrayList;
16: import java.util.List;
17:
18: import org.eclipse.kapua.service.device.management.configuration.DeviceComponentConfiguration;
19: import org.eclipse.kapua.service.device.management.configuration.DeviceConfiguration;
20:
21: /**
22: * Device configuration entity implementation.
23: *
24: * @since 1.0
25: */
26: public class DeviceConfigurationImpl implements DeviceConfiguration {
27:
28: private static final long serialVersionUID = -2167999497954676423L;
29:
30: private List<DeviceComponentConfiguration> configurations;
31:
32: public DeviceConfigurationImpl() {
33: configurations = new ArrayList<>();
34: }
35:
36: @Override
37: public List<DeviceComponentConfiguration> getComponentConfigurations() {
38: return configurations;
39: }
40:
41: }