Package ch.obermuhlner.math.big.stream
Class BigFloatStream
java.lang.Object
ch.obermuhlner.math.big.stream.BigFloatStream
Provides constructor methods for streams of
BigFloat elements.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrange(double startInclusive, double endExclusive, double step, BigFloat.Context context) Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendExclusive(exclusive) by an incrementalstep.range(long startInclusive, long endExclusive, long step, BigFloat.Context context) Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendExclusive(exclusive) by an incrementalstep.Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendExclusive(exclusive) by an incrementalstep.rangeClosed(double startInclusive, double endInclusive, double step, BigFloat.Context context) Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendInclusive(inclusive) by an incrementalstep.rangeClosed(long startInclusive, long endInclusive, long step, BigFloat.Context context) Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendInclusive(inclusive) by an incrementalstep.rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step) Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendInclusive(inclusive) by an incrementalstep.
-
Constructor Details
-
BigFloatStream
public BigFloatStream()
-
-
Method Details
-
range
Returns a sequential orderedStream<BigFloat>fromstartInclusive(inclusive) toendExclusive(exclusive) by an incrementalstep.An equivalent sequence of increasing values can be produced sequentially using a
forloop 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 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 thelongvalues.- Parameters:
startInclusive- the (inclusive) initial valueendExclusive- the exclusive upper boundstep- the step between elementscontext- theBigFloat.Contextused to convert thelongvalues- Returns:
- a sequential
Stream<BigFloat> - See Also:
-
range
public static 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 thedoublevalues.- Parameters:
startInclusive- the (inclusive) initial valueendExclusive- the exclusive upper boundstep- the step between elementscontext- theBigFloat.Contextused to convert thedoublevalues- Returns:
- a sequential
Stream<BigFloat> - See Also:
-
rangeClosed
public static 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
forloop 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 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 thelongvalues.- Parameters:
startInclusive- the (inclusive) initial valueendInclusive- the inclusive upper boundstep- the step between elementscontext- theBigFloat.Contextused to convert thelongvalues- Returns:
- a sequential
Stream<BigFloat> - See Also:
-
rangeClosed
public static 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 thedoublevalues.- Parameters:
startInclusive- the (inclusive) initial valueendInclusive- the inclusive upper boundstep- the step between elementscontext- theBigFloat.Contextused to convert thedoublevalues- Returns:
- a sequential
Stream<BigFloat> - See Also:
-