2 * Copyright (c) 2014 Contextream, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.lispflowmapping.type.lisp.address;
11 import org.opendaylight.lispflowmapping.type.AddressFamilyNumberEnum;
13 public class LispASAddress extends LispAddress {
16 public LispASAddress(int num) {
17 super(AddressFamilyNumberEnum.AS);
28 public int hashCode() {
30 int result = super.hashCode();
31 result = prime * result + asNum;
36 public boolean equals(Object obj) {
39 if (!super.equals(obj))
41 if (getClass() != obj.getClass())
43 LispASAddress other = (LispASAddress) obj;
44 if (asNum != other.asNum)
50 public String toString() {