Skip to content

Package: AbstractDomain

AbstractDomain

nameinstructionbranchcomplexitylinemethod
AbstractDomain()
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%
equals(Object)
M: 38 C: 0
0%
M: 12 C: 0
0%
M: 7 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%
hashCode()
M: 20 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) 2018, 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.model.domain;
14:
15: import java.util.Objects;
16:
17: public abstract class AbstractDomain implements Domain {
18:
19: @Override
20: public boolean equals(Object o) {
21:• if (this == o) {
22: return true;
23: }
24:• if (o == null || getClass() != o.getClass()) {
25: return false;
26: }
27: Domain domain = (Domain) o;
28:• return getGroupable() == domain.getGroupable() &&
29:• Objects.equals(getName(), domain.getName()) &&
30:• Objects.equals(getActions(), domain.getActions());
31: }
32:
33: @Override
34: public int hashCode() {
35: return Objects.hash(getName(), getActions(), getGroupable());
36: }
37: }