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 Overloaded Duratioon Tlv.
16 * @see <a href="http://tools.ietf.org/html/rfc5440#section-7.14">NOTIFICATION
17 * Object</a> - defined in text
19 public class OverloadedDurationTlv implements PCEPTlv {
20 private static final long serialVersionUID = -5829314427598008054L;
21 private final int value;
24 * Construct new Overloaded Duration Tlv.
29 public OverloadedDurationTlv(int value) {
34 * Gets Integer representation of Overloade Duration Value.
38 public int getValue() {
43 public int hashCode() {
46 result = prime * result + this.value;
51 public boolean equals(Object obj) {
56 if (this.getClass() != obj.getClass())
58 final OverloadedDurationTlv other = (OverloadedDurationTlv) obj;
59 if (this.value != other.value)
65 public String toString() {
66 final StringBuilder builder = new StringBuilder();
67 builder.append("OverloadedDurationTlv [value=");
68 builder.append(this.value);
70 return builder.toString();