6b111871d37d50c816024e31366a5ac0d29f001d
[ccsdk/sli.git] /
1 package org.onap.ccsdk.sli.core.slipluginutils.slitopologyutils.topology;
2
3 import java.util.Objects;
4
5 public class PInterface {
6
7     private final String pnfName;
8     private final PInterfaceName pInterfaceName;
9
10     public PInterface(String pnfName, PInterfaceName pInterfaceName){
11         this.pnfName = pnfName;
12         this.pInterfaceName = pInterfaceName;
13     }
14
15     public PInterfaceName pInterfaceName() {
16         return pInterfaceName;
17     }
18
19     @Override
20     public int hashCode(){
21         return Objects.hash(pnfName, pInterfaceName);
22     }
23
24     @Override
25     public boolean equals(Object o){
26         if (this == o){
27             return true;
28         }
29         if (o instanceof PInterface){
30             final PInterface other = (PInterface) o;
31             return Objects.equals(this.pnfName, other.pnfName) &&
32                     Objects.equals(this.pInterfaceName, other.pInterfaceName);
33         }
34         return false;
35     }
36 }