sum of numbers using Primitives range
Sergey Kuksenko
sergey.kuksenko at oracle.com
Wed Dec 12 04:24:39 PST 2012
In such case it would be much better to add required methods to Integer
class.
Integer.valueOf(from).to(toInclusive)
Integer.valueOf(from).until(toExclusive)
On 12/12/2012 04:08 PM, Ricky Clarkson wrote:
> I'd suggest rangeInclusive(int from, int to) and rangeExcludesEnd(int
> from, int until).
>
> On Dec 12, 2012 8:32 AM, "Sergey Kuksenko" <sergey.kuksenko at oracle.com
> <mailto:sergey.kuksenko at oracle.com>> wrote:
>
> > public static IntStream range(final int startInclusive, final
> int endExclusive)
> >
> So, there is no way to get IntStream from zero to and including
> Integer.MAX_VALUE.
>
>
> --
> Best regards,
> Sergey Kuksenko
>
--
Best regards,
Sergey Kuksenko
More information about the lambda-dev
mailing list