Here you can find the source of intAsByte(int value)
public static byte intAsByte(int value)
//package com.java2s; public class Main { public static byte intAsByte(int value) { return (byte) (value & 0xff); }/* ww w .ja va 2 s. c o m*/ }