@Immutable public final class FactorialHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PREDEFINED_MAX_INDEX
The maximum value for which pre-computed factorial values are present
|
static int |
PREDEFINED_MIN_INDEX
The minimum value for which pre-computed factorial values are present
|
| Modifier and Type | Method and Description |
|---|---|
static BigInteger |
getAnyFactorialLinear(int n) |
static long |
getSmallFactorial(int n)
Calculate n!
|
public static final int PREDEFINED_MIN_INDEX
public static final int PREDEFINED_MAX_INDEX
@Nonnegative public static long getSmallFactorial(@Nonnegative int n)
PREDEFINED_MAX_INDEX.n - Input value@Nonnull public static BigInteger getAnyFactorialLinear(@Nonnegative int n)
Copyright © 2014–2015 Philip Helger. All rights reserved.