Skip to content

Package: MetricInfoListResultImpl

MetricInfoListResultImpl

nameinstructionbranchcomplexitylinemethod
MetricInfoListResultImpl()
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%
MetricInfoListResultImpl(ResultList)
M: 8 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.model;
14:
15: import org.eclipse.kapua.service.datastore.model.MetricInfo;
16: import org.eclipse.kapua.service.datastore.model.MetricInfoListResult;
17: import org.eclipse.kapua.service.elasticsearch.client.model.ResultList;
18: import org.eclipse.kapua.service.storable.model.AbstractStorableListResult;
19:
20: /**
21: * {@link MetricInfoListResult} implementation.
22: *
23: * @since 1.0.0
24: */
25: public class MetricInfoListResultImpl extends AbstractStorableListResult<MetricInfo> implements MetricInfoListResult {
26:
27: private static final long serialVersionUID = 9057086672566426909L;
28:
29: /**
30: * Constructor.
31: *
32: * @since 1.0.0
33: */
34: public MetricInfoListResultImpl() {
35: super();
36: }
37:
38: /**
39: * Constructor.
40: *
41: * @param resultList The {@link ResultList} to add.
42: * @since 1.0.0
43: */
44: public MetricInfoListResultImpl(ResultList<MetricInfo> resultList) {
45: super(resultList.getResult(), resultList.getTotalCount());
46: }
47:
48: }