Arrays.stream() vs Stream.of()

Richard Warburton richard.warburton at gmail.com
Thu Aug 22 02:33:16 PDT 2013


Hi,

There are a series of Arrays.stream() methods which offer duplicate
functionality to the Stream.of(), IntStream.of() etc methods.  I appreciate
there's a slight difference in that one takes arrays directly, and the
other varargs but I'm pretty sure that enough people realise that you can
pass arrays into varargs methods to not warrant the duplication.

regards,

  Dr. Richard Warburton

  http://insightfullogic.com
  @RichardWarburto <http://twitter.com/richardwarburto>


More information about the lambda-dev mailing list