Class BigFloatStream

java.lang.Object
ch.obermuhlner.math.big.stream.BigFloatStream

public class BigFloatStream extends Object
Provides constructor methods for streams of BigFloat elements.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    range(double startInclusive, double endExclusive, double step, BigFloat.Context context)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.
    range(long startInclusive, long endExclusive, long step, BigFloat.Context context)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.
    range(BigFloat startInclusive, BigFloat endExclusive, BigFloat step)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.
    rangeClosed(double startInclusive, double endInclusive, double step, BigFloat.Context context)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.
    rangeClosed(long startInclusive, long endInclusive, long step, BigFloat.Context context)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.
    rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step)
    Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BigFloatStream

      public BigFloatStream()
  • Method Details

    • range

      public static Stream<BigFloat> range(BigFloat startInclusive, BigFloat endExclusive, BigFloat step)
      Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.

      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 value
      endExclusive - the exclusive upper bound
      step - 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 ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.

      BigFloat.Context.valueOf(long) is used to convert the long values.

      Parameters:
      startInclusive - the (inclusive) initial value
      endExclusive - the exclusive upper bound
      step - the step between elements
      context - the BigFloat.Context used to convert the long values
      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 ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.

      BigFloat.Context.valueOf(double) is used to convert the double values.

      Parameters:
      startInclusive - the (inclusive) initial value
      endExclusive - the exclusive upper bound
      step - the step between elements
      context - the BigFloat.Context used to convert the double values
      Returns:
      a sequential Stream<BigFloat>
      See Also:
    • rangeClosed

      public static Stream<BigFloat> rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step)
      Returns a sequential ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.

      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 value
      endInclusive - the inclusive upper bound
      step - 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 ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.

      BigFloat.Context.valueOf(long) is used to convert the long values.

      Parameters:
      startInclusive - the (inclusive) initial value
      endInclusive - the inclusive upper bound
      step - the step between elements
      context - the BigFloat.Context used to convert the long values
      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 ordered Stream<BigFloat> from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step.

      BigFloat.Context.valueOf(double) is used to convert the double values.

      Parameters:
      startInclusive - the (inclusive) initial value
      endInclusive - the inclusive upper bound
      step - the step between elements
      context - the BigFloat.Context used to convert the double values
      Returns:
      a sequential Stream<BigFloat>
      See Also: