Package ch.obermuhlner.math.big.stream
Class BigFloatStream
- java.lang.Object
-
- ch.obermuhlner.math.big.stream.BigFloatStream
-
public class BigFloatStream extends java.lang.Object
Provides constructor methods for streams ofBigFloat
elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BigFloatStream.BigFloatSpliterator
-
Constructor Summary
Constructors Constructor Description BigFloatStream()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Stream<BigFloat>
range(double startInclusive, double endExclusive, double step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.static java.util.stream.Stream<BigFloat>
range(long startInclusive, long endExclusive, long step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.static java.util.stream.Stream<BigFloat>
range(BigFloat startInclusive, BigFloat endExclusive, BigFloat step)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.static java.util.stream.Stream<BigFloat>
rangeClosed(double startInclusive, double endInclusive, double step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.static java.util.stream.Stream<BigFloat>
rangeClosed(long startInclusive, long endInclusive, long step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.static java.util.stream.Stream<BigFloat>
rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.
-
-
-
Method Detail
-
range
public static java.util.stream.Stream<BigFloat> range(BigFloat startInclusive, BigFloat endExclusive, BigFloat step)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.An equivalent sequence of increasing values can be produced sequentially using a
for
loop as follows:for (BigFloat i = startInclusive; i.isLessThan(endExclusive); i = i.add(step)) { // ... }
- Parameters:
startInclusive
- the (inclusive) initial valueendExclusive
- the exclusive upper boundstep
- the step between elements- Returns:
- a sequential
Stream<BigFloat>
-
range
public static java.util.stream.Stream<BigFloat> range(long startInclusive, long endExclusive, long step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.BigFloat.Context.valueOf(long)
is used to convert thelong
values.- Parameters:
startInclusive
- the (inclusive) initial valueendExclusive
- the exclusive upper boundstep
- the step between elementscontext
- theBigFloat.Context
used to convert thelong
values- Returns:
- a sequential
Stream<BigFloat>
- See Also:
range(BigFloat, BigFloat, BigFloat)
-
range
public static java.util.stream.Stream<BigFloat> range(double startInclusive, double endExclusive, double step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendExclusive
(exclusive) by an incrementalstep
.BigFloat.Context.valueOf(double)
is used to convert thedouble
values.- Parameters:
startInclusive
- the (inclusive) initial valueendExclusive
- the exclusive upper boundstep
- the step between elementscontext
- theBigFloat.Context
used to convert thedouble
values- Returns:
- a sequential
Stream<BigFloat>
- See Also:
range(BigFloat, BigFloat, BigFloat)
-
rangeClosed
public static java.util.stream.Stream<BigFloat> rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.An equivalent sequence of increasing values can be produced sequentially using a
for
loop as follows:for (BigFloat i = startInclusive; i.isLessThanOrEqual(endInclusive); i = i.add(step)) { //... }
- Parameters:
startInclusive
- the (inclusive) initial valueendInclusive
- the inclusive upper boundstep
- the step between elements- Returns:
- a sequential
Stream<BigFloat>
-
rangeClosed
public static java.util.stream.Stream<BigFloat> rangeClosed(long startInclusive, long endInclusive, long step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.BigFloat.Context.valueOf(long)
is used to convert thelong
values.- Parameters:
startInclusive
- the (inclusive) initial valueendInclusive
- the inclusive upper boundstep
- the step between elementscontext
- theBigFloat.Context
used to convert thelong
values- Returns:
- a sequential
Stream<BigFloat>
- See Also:
rangeClosed(BigFloat, BigFloat, BigFloat)
-
rangeClosed
public static java.util.stream.Stream<BigFloat> rangeClosed(double startInclusive, double endInclusive, double step, BigFloat.Context context)
Returns a sequential orderedStream<BigFloat>
fromstartInclusive
(inclusive) toendInclusive
(inclusive) by an incrementalstep
.BigFloat.Context.valueOf(double)
is used to convert thedouble
values.- Parameters:
startInclusive
- the (inclusive) initial valueendInclusive
- the inclusive upper boundstep
- the step between elementscontext
- theBigFloat.Context
used to convert thedouble
values- Returns:
- a sequential
Stream<BigFloat>
- See Also:
rangeClosed(BigFloat, BigFloat, BigFloat)
-
-