Class FactorialDouble
- java.lang.Object
-
- org.apache.commons.numbers.combinatorics.FactorialDouble
-
@Deprecated public final class FactorialDouble extends java.lang.Object
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
. Factorial of a number.
-
-
Field Summary
Fields Modifier and Type Field Description private static FactorialDouble
INSTANCE
Deprecated.Single instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
FactorialDouble()
Deprecated.No public instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FactorialDouble
create()
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.double
value(int n)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.FactorialDouble
withCache(int cacheSize)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.
-
-
-
Field Detail
-
INSTANCE
private static final FactorialDouble INSTANCE
Deprecated.Single instance.
-
-
Method Detail
-
create
@Deprecated public static FactorialDouble create()
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.This class no longer supports a cache. This method returns a reference to a single instance.
- Returns:
- instance
-
withCache
@Deprecated public FactorialDouble withCache(int cacheSize)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.This class no longer supports a cache. This method returns a reference to the same object.
- Parameters:
cacheSize
- Ignored.- Returns:
- instance
-
value
@Deprecated public double value(int n)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.The result of calling this method is the same as calling the
Factorial.doubleValue(int)
.- Parameters:
n
- Argument.- Returns:
n!
- Throws:
java.lang.IllegalArgumentException
- ifn < 0
.
-
-