Example usage for com.google.common.primitives UnsignedInteger valueOf

List of usage examples for com.google.common.primitives UnsignedInteger valueOf

Introduction

In this page you can find the example usage for com.google.common.primitives UnsignedInteger valueOf.

Prototype

public static UnsignedInteger valueOf(String string, int radix) 

Source Link

Document

Returns an UnsignedInteger holding the value of the specified String , parsed as an unsigned int value in the specified radix.

Usage

From source file:c1c.v8fs.ChunkHeader.java

private long hexToInt(String hex) {
    return UnsignedInteger.valueOf(hex, 16).longValue();
}