Java Byte Convert From asByte(Byte number)

Here you can find the source of asByte(Byte number)

Description

as Byte

License

Open Source License

Declaration

public static byte asByte(Byte number) 

Method Source Code

//package com.java2s;
/*/*from   w  ww .  j  a  v  a2s .c  o  m*/
 * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

public class Main {
    public static byte asByte(Byte number) {
        if (number != null) {
            return number;
        }
        return 0;
    }
}

Related

  1. asByte(final Object o)
  2. asByte(Object o)
  3. booleanAsByte(boolean val)
  4. bytesFrom(String hwAddress)