All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apfloat.internal.LongCarryCRTBuilder Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
package org.apfloat.internal;

import org.apfloat.spi.CarryCRTBuilder;
import org.apfloat.spi.CarryCRTStrategy;
import org.apfloat.spi.CarryCRTStepStrategy;

/**
 * Creates carry-CRT related objects, for the
 * long type.
 *
 * @since 1.7.0
 * @version 1.7.0
 * @author Mikko Tommila
 */

public class LongCarryCRTBuilder
    implements CarryCRTBuilder
{
    /**
     * Default constructor.
     */

    public LongCarryCRTBuilder()
    {
    }

    public CarryCRTStrategy createCarryCRT(int radix)
    {
        return new StepCarryCRTStrategy(radix);
    }

    public CarryCRTStepStrategy createCarryCRTSteps(int radix)
    {
        return new LongCarryCRTStepStrategy(radix);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy