Class FactorialDouble

    • Field Detail

      • INSTANCE

        private static final FactorialDouble INSTANCE
        Deprecated.
        Single instance.
    • Constructor Detail

      • FactorialDouble

        private FactorialDouble()
        Deprecated.
        No public instances.
    • Method Detail

      • create

        @Deprecated
        public static FactorialDouble create()
        Deprecated.
        Since 1.1 this functionality has been replaced with Factorial.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 with Factorial.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 with Factorial.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 - if n < 0.