org.apfloat.internal.DoubleApfloatBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apfloat Show documentation
Show all versions of apfloat Show documentation
High performance arbitrary precision arithmetic library
package org.apfloat.internal;
import java.io.PushbackReader;
import java.io.IOException;
import org.apfloat.ApfloatRuntimeException;
import org.apfloat.spi.ApfloatBuilder;
import org.apfloat.spi.ApfloatImpl;
/**
* Builder class for building {@link ApfloatImpl} implementations with the
* double
data element type.
*
* @version 1.0
* @author Mikko Tommila
*/
public class DoubleApfloatBuilder
implements ApfloatBuilder
{
/**
* Default constructor.
*/
public DoubleApfloatBuilder()
{
}
public ApfloatImpl createApfloat(String value, long precision, int radix, boolean isInteger)
throws NumberFormatException, ApfloatRuntimeException
{
return new DoubleApfloatImpl(value, precision, radix, isInteger);
}
public ApfloatImpl createApfloat(long value, long precision, int radix)
throws NumberFormatException, ApfloatRuntimeException
{
return new DoubleApfloatImpl(value, precision, radix);
}
public ApfloatImpl createApfloat(double value, long precision, int radix)
throws NumberFormatException, ApfloatRuntimeException
{
return new DoubleApfloatImpl(value, precision, radix);
}
public ApfloatImpl createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
throws IOException, NumberFormatException, ApfloatRuntimeException
{
return new DoubleApfloatImpl(in, precision, radix, isInteger);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy