1 package org.opendaylight.lispflowmapping.implementation.dao;
3 import org.opendaylight.lispflowmapping.interfaces.dao.IMappingServiceKey;
4 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainer;
6 public class MappingServiceKey implements IMappingServiceKey {
8 private LispAddressContainer EID;
11 public MappingServiceKey(LispAddressContainer lispAddressContainer, int mask) {
12 this.EID = lispAddressContainer;
16 public LispAddressContainer getEID() {
20 public void setEID(LispAddressContainer eID) {
24 public int getMask() {
28 public void setMask(int mask) {
33 public int hashCode() {
36 result = prime * result + ((EID == null) ? 0 : EID.hashCode());
37 result = prime * result + mask;
42 public boolean equals(Object obj) {
47 if (getClass() != obj.getClass())
49 MappingServiceKey other = (MappingServiceKey) obj;
51 if (other.EID != null)
53 } else if (!EID.equals(other.EID))
55 if (mask != other.mask)
61 public String toString() {
63 return EID.toString() + "/" + mask;
65 return EID.toString();