List of usage examples for com.google.common.math IntMath checkedPow
public static int checkedPow(int b, int k)
From source file:org.spf4j.zel.operators.IntegerOperators.java
private static Number powIntInt(final Integer a, final Number b) { int result;//from w w w . jav a 2s . c o m try { result = IntMath.checkedPow(a, b.intValue()); } catch (ArithmeticException e) { return BigInteger.valueOf(a).pow(b.intValue()); } return result; }