Here you can find the source of assertHexOrDecLongValue(String value)
public static boolean assertHexOrDecLongValue(String value)
//package com.java2s; public class Main { public static boolean assertHexOrDecLongValue(String value) { try {/*from w w w . j av a 2 s .c o m*/ parseHexOrDecLong(value); } catch (NumberFormatException nfe) { return false; } return true; } public static Long parseHexOrDecLong(String value) { return value.startsWith("0x") ? Long.parseLong(value.substring(2), 16) : Long.parseLong(value, 10); } }