Enforce pcep-spi checkstyle
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / VendorInformationUtil.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.pcep.spi;
9
10 public final class VendorInformationUtil {
11
12     public static final int VENDOR_INFORMATION_TLV_TYPE = 7;
13
14     public static final int VENDOR_INFORMATION_OBJECT_CLASS = 34;
15
16     public static final int VENDOR_INFORMATION_OBJECT_TYPE = 1;
17
18     private VendorInformationUtil() {
19     }
20
21     public static boolean isVendorInformationTlv(final int type) {
22         return type == VENDOR_INFORMATION_TLV_TYPE;
23     }
24
25     public static boolean isVendorInformationObject(final int objectClass, final int objectType) {
26         return objectType == VENDOR_INFORMATION_OBJECT_TYPE && objectClass == VENDOR_INFORMATION_OBJECT_CLASS;
27     }
28 }