Understanding Spliterator, Collector and Stream in Java 8
问题 I am having trouble understanding the Stream interface in Java 8, especially where it has to do with the Spliterator and Collector interfaces. My problem is that I simply can't understand yet the Spliterator and the Collector interfaces, and as a result the Stream interface is still somewhat obscure to me. What exactly is a Spliterator and a Collector , and how can I use them? If I am willing to write my own Spliterator or Collector (and probably my own Stream in that process), what should I