BUG-6647 Increase code coverage and clean up II
[bgpcep.git] / util / src / main / java / org / opendaylight / protocol / util / Values.java
1 /*
2  * Copyright (c) 2013 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.util;
9
10 /**
11  * Util class for storing various util values as constants.
12  */
13 public final class Values {
14
15     private Values() {
16         throw new UnsupportedOperationException();
17     }
18
19     /**
20      * Maximum unsigned Short value (65535).
21      */
22     public static final int UNSIGNED_SHORT_MAX_VALUE = 65535;
23
24     /**
25      * Maximum unsigned Byte value (255).
26      */
27     public static final int UNSIGNED_BYTE_MAX_VALUE = 255;
28
29     /**
30      * Maximum unsigned Integer value (2147483648);
31      */
32     public static final long UNSIGNED_INT_MAX_VALUE = (long) Integer.MAX_VALUE + 1;
33
34     /**
35      * Maximum unsigned Byte value in hex (0xFF).
36      */
37     public static final int BYTE_MAX_VALUE_BYTES = 0xFF;
38
39     /**
40      * In order to get the value in first bit, we need to shift the byte by 7.
41      */
42     public static final int FIRST_BIT_OFFSET = 7;
43 }