Java Unsigned Number Create unsigned(byte value)

Here you can find the source of unsigned(byte value)

Description

unsigned

License

Apache License

Declaration

public static short unsigned(byte value) 

Method Source Code

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

public class Main {
    public static short unsigned(byte value) {
        return (short) (value & 0xFF);
    }/* w  w  w.  j a  v a 2  s.  c om*/

    public static int unsigned(short value) {
        return value & 0xFFFF;
    }

    public static long unsigned(int value) {
        return value & 0xFFFFFFFFL;
    }
}

Related

  1. unsign(byte i)
  2. unsign(byte[] b)
  3. unsign(final byte b)
  4. unsigned(byte b)
  5. unsigned(byte data)
  6. unsigned(int num)
  7. unsigned(int val)
  8. unsigned(short value)
  9. unsigned16(short s)