Java Byte to Unsigned Int asUnsignedByte(int n)

Here you can find the source of asUnsignedByte(int n)

Description

as Unsigned Byte

License

LGPL

Declaration

public static final byte asUnsignedByte(int n) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static final byte asUnsignedByte(int n) {
        return (byte) ((n) & 0xFF);
    }//from  w  ww.j a  v a  2 s .co  m
}

Related

  1. asUnsigned(byte value)
  2. asUnsigned(final byte byteValue)
  3. asUnsignedByte(byte b)
  4. asUnsignedInt(byte b)
  5. asUnsignedInt(byte signedValue)
  6. asUnsignedLong(byte signedValue)
  7. asUnsignedShort(byte signedValue)