|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apfloat.internal.LongApfloatBuilder
Builder class for building ApfloatImpl
implementations with the
long
data element type.
Constructor Summary | |
LongApfloatBuilder()
Default constructor. |
Method Summary | |
ApfloatImpl |
createApfloat(double value,
long precision,
int radix)
Create a new ApfloatImpl instance from a double . |
ApfloatImpl |
createApfloat(long value,
long precision,
int radix)
Create a new ApfloatImpl instance from a long . |
ApfloatImpl |
createApfloat(java.io.PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new ApfloatImpl instance reading from a stream. |
ApfloatImpl |
createApfloat(java.lang.String value,
long precision,
int radix,
boolean isInteger)
Create a new ApfloatImpl instance from a String . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LongApfloatBuilder()
Method Detail |
public ApfloatImpl createApfloat(java.lang.String value, long precision, int radix, boolean isInteger) throws java.lang.NumberFormatException, ApfloatRuntimeException
ApfloatBuilder
ApfloatImpl
instance from a String
.
createApfloat
in interface ApfloatBuilder
value
- The string to be parsed to a number.precision
- The precision of the number (in digits of the radix).radix
- The radix in which the number is created.isInteger
- Specifies if the number to be parsed from the string is to be treated as an integer or not.
java.lang.NumberFormatException
- If the number is not valid.
ApfloatRuntimeException
public ApfloatImpl createApfloat(long value, long precision, int radix) throws java.lang.NumberFormatException, ApfloatRuntimeException
ApfloatBuilder
ApfloatImpl
instance from a long
.
createApfloat
in interface ApfloatBuilder
value
- The value of the number.precision
- The precision of the number (in digits of the radix).radix
- The radix in which the number is created.
java.lang.NumberFormatException
- If the number is not valid.
ApfloatRuntimeException
public ApfloatImpl createApfloat(double value, long precision, int radix) throws java.lang.NumberFormatException, ApfloatRuntimeException
ApfloatBuilder
ApfloatImpl
instance from a double
.
createApfloat
in interface ApfloatBuilder
value
- The value of the number.precision
- The precision of the number (in digits of the radix).radix
- The radix in which the number is created.
java.lang.NumberFormatException
- If the number is not valid.
ApfloatRuntimeException
public ApfloatImpl createApfloat(java.io.PushbackReader in, long precision, int radix, boolean isInteger) throws java.io.IOException, java.lang.NumberFormatException, ApfloatRuntimeException
ApfloatBuilder
ApfloatImpl
instance reading from a stream.
createApfloat
in interface ApfloatBuilder
in
- The stream to read from.precision
- The precision of the number (in digits of the radix).radix
- The radix in which the number is created.isInteger
- Specifies if the number to be parsed from the stream is to be treated as an integer or not.
java.io.IOException
- If an I/O error occurs accessing the stream.
java.lang.NumberFormatException
- If the number is not valid.
ApfloatRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |