1 package org.onap.ccsdk.sli.core.slipluginutils.slitopologyutils.topology;
3 import java.util.Objects;
5 public class PInterface {
7 private final String pnfName;
8 private final PInterfaceName pInterfaceName;
10 public PInterface(String pnfName, PInterfaceName pInterfaceName){
11 this.pnfName = pnfName;
12 this.pInterfaceName = pInterfaceName;
15 public PInterfaceName pInterfaceName() {
16 return pInterfaceName;
20 public int hashCode(){
21 return Objects.hash(pnfName, pInterfaceName);
25 public boolean equals(Object o){
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);