Skip to content

Package: ClientInfoListResultImpl

ClientInfoListResultImpl

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