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
9 package org.opendaylight.protocol.pcep.tlv;
11 import org.opendaylight.protocol.pcep.PCEPTlv;
14 * Structure of Request Missing Tlv.
16 * @see <a href="http://tools.ietf.org/html/rfc5440#section-7.15">PCEP-ERROR
17 * Object</a> - defined in text (Error-type=7)
19 public class ReqMissingTlv implements PCEPTlv {
20 private static final long serialVersionUID = -3910927830017195746L;
21 private final long requestID;
24 * Constructs new Request Missing Tlv.
29 public ReqMissingTlv(long requestID) {
30 this.requestID = requestID;
34 * gets long representation of Requested ID.
38 public long getRequestID() {
39 return this.requestID;
43 public int hashCode() {
46 result = prime * result + (int) (this.requestID ^ (this.requestID >>> 32));
51 public boolean equals(Object obj) {
56 if (this.getClass() != obj.getClass())
58 final ReqMissingTlv other = (ReqMissingTlv) obj;
59 if (this.requestID != other.requestID)
65 public String toString() {
66 final StringBuilder builder = new StringBuilder();
67 builder.append("ReqMissingTlv [requestID=");
68 builder.append(this.requestID);
70 return builder.toString();