Java – Spliterator.OfPrimitive Interface

Java Spliterator.OfPrimitive Interface methods, variables available in Java 8 release are listed below. We will publish example program on each methods ASAP.

Methods in Java Spliterator.OfPrimitive Interface

S.No Method & Description
1 default void forEachRemaining(T_CONS action)

Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.
2 boolean tryAdvance(T_CONS action)

If a remaining element exists, performs the given action on it, returning true; else returns false.
3 T_SPLITR trySplit()

If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – AbstractMap.SimpleEntry Class
  2. Java – IntBinaryOperator Interface
  3. Java ArrayList remove(Object o) method with example
  4. Java – BitSet Class
  5. Java – Dictionary Class
  6. Java – Objects Class in Util Package
  7. Java – LongSummaryStatistics Class
  8. Java – Stream.Builder Interface
  9. Java – Exchanger Class
  10. Java – ScheduledExecutorService Interface
  11. Java – LongStream Interface
  12. java.util.concurrent Package
  13. Java – EventObject Class
  14. Java – StringTokenizer Class
  15. Java – PrimitiveIterator.OfLong Interface

Be the first to comment

Leave a Reply