Java Object Type Case cast(byte b)

Here you can find the source of cast(byte b)

Description

cast

License

Open Source License

Declaration

private static int cast(byte b) 

Method Source Code

//package com.java2s;

public class Main {
    private static int cast(byte b) {
        if (b >= 0) {
            return b;
        }/*  w  w w.ja va2 s  .c om*/
        return 256 + b;
    }
}

Related

  1. cast(B b0, Class cls)
  2. cast(byte[] bytes)
  3. cast(Class c)
  4. cast(Class c, Object o)
  5. cast(Class clazz, Object o, T def)