2 * Copyright (c) 2013 Cisco Systems, 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
8 package org.opendaylight.protocol.pcep.subobject;
10 public abstract class ExcludeRouteSubobject {
12 protected final boolean mandatory;
14 public ExcludeRouteSubobject(boolean mandatory) {
15 this.mandatory = mandatory;
18 public boolean isMandatory() {
19 return this.mandatory;
23 public int hashCode() {
26 result = prime * result + (this.mandatory ? 1231 : 1237);
31 public boolean equals(Object obj) {
36 if (this.getClass() != obj.getClass())
38 final ExcludeRouteSubobject other = (ExcludeRouteSubobject) obj;
39 if (this.mandatory != other.mandatory)