Class BigFloatStream


  • public class BigFloatStream
    extends java.lang.Object
    Provides constructor methods for streams of BigFloat elements.
    • 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 ordered Stream<BigFloat> from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step.
      static java.util.stream.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.
      static java.util.stream.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.
      static java.util.stream.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.
      static java.util.stream.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.
      static java.util.stream.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.
      • Methods inherited from class java.lang.Object

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

      • BigFloatStream

        public BigFloatStream()
    • Method Detail

      • range

        public static java.util.stream.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 java.util.stream.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(BigFloat, BigFloat, BigFloat)
      • range

        public static java.util.stream.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:
        range(BigFloat, BigFloat, BigFloat)
      • rangeClosed

        public static java.util.stream.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 java.util.stream.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(BigFloat, BigFloat, BigFloat)
      • rangeClosed

        public static java.util.stream.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:
        rangeClosed(BigFloat, BigFloat, BigFloat)