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.util;
11 * Util class for storing various util values as constants.
13 public final class Values {
16 throw new UnsupportedOperationException();
20 * Maximum unsigned Short value (65535).
22 public static final int UNSIGNED_SHORT_MAX_VALUE = 65535;
25 * Maximum unsigned Byte value (255).
27 public static final int UNSIGNED_BYTE_MAX_VALUE = 255;
30 * Maximum unsigned Integer value (2147483648);
32 public static final long UNSIGNED_INT_MAX_VALUE = (long) Integer.MAX_VALUE + 1;
35 * Maximum unsigned Byte value in hex (0xFF).
37 public static final int BYTE_MAX_VALUE_BYTES = 0xFF;
40 * In order to get the value in first bit, we need to shift the byte by 7.
42 public static final int FIRST_BIT_OFFSET = 7;