Example usage for java.lang Short toUnsignedInt

List of usage examples for java.lang Short toUnsignedInt

Introduction

In this page you can find the example usage for java.lang Short toUnsignedInt.

Prototype

public static int toUnsignedInt(short x) 

Source Link

Document

Converts the argument to an int by an unsigned conversion.

Usage

From source file:edu.rit.flick.genetics.util.HexPrinter.java

public static String shortToBinaryString(final short s) {
    return intToBinaryString(Short.toUnsignedInt(s));
}

From source file:us.ihmc.idl.CDR.java

/**
 * Unsigned short
 */
public int read_type_3() {
    return Short.toUnsignedInt(read_type_1());
}