Class LongSpliterators.EmptySpliterator

java.lang.Object
it.unimi.dsi.fastutil.longs.LongSpliterators.EmptySpliterator
All Implemented Interfaces:
LongSpliterator, java.io.Serializable, java.lang.Cloneable, java.util.Spliterator<java.lang.Long>, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<java.lang.Long,​java.util.function.LongConsumer,​java.util.Spliterator.OfLong>
Enclosing class:
LongSpliterators

public static class LongSpliterators.EmptySpliterator
extends java.lang.Object
implements LongSpliterator, java.io.Serializable, java.lang.Cloneable
A class returning no elements and a type-specific spliterator interface.

This class may be useful to implement your own in case you subclass a type-specific spliterator.

See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.Spliterator

    java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,​T_CONS extends java.lang.Object,​T_SPLITR extends java.util.Spliterator.OfPrimitive<T,​T_CONS,​T_SPLITR>>
  • Field Summary

    Fields inherited from interface java.util.Spliterator

    CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
  • Method Summary

    Modifier and Type Method Description
    int characteristics()  
    java.lang.Object clone()  
    long estimateSize()  
    void forEachRemaining​(java.util.function.Consumer<? super java.lang.Long> action)
    Deprecated.
    void forEachRemaining​(java.util.function.LongConsumer action)  
    boolean tryAdvance​(java.util.function.Consumer<? super java.lang.Long> action)
    Deprecated.
    boolean tryAdvance​(java.util.function.LongConsumer action)  
    LongSpliterator trySplit()

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.longs.LongSpliterator

    forEachRemaining, getComparator, skip, tryAdvance

    Methods inherited from interface java.util.Spliterator

    getExactSizeIfKnown, hasCharacteristics
  • Method Details

    • tryAdvance

      public boolean tryAdvance​(java.util.function.LongConsumer action)
      Specified by:
      tryAdvance in interface java.util.Spliterator.OfLong
      Specified by:
      tryAdvance in interface java.util.Spliterator.OfPrimitive<java.lang.Long,​java.util.function.LongConsumer,​java.util.Spliterator.OfLong>
    • tryAdvance

      @Deprecated public boolean tryAdvance​(java.util.function.Consumer<? super java.lang.Long> action)
      Deprecated.
      Description copied from interface: LongSpliterator
      Specified by:
      tryAdvance in interface LongSpliterator
      Specified by:
      tryAdvance in interface java.util.Spliterator<java.lang.Long>
      Specified by:
      tryAdvance in interface java.util.Spliterator.OfLong
    • trySplit

      public LongSpliterator trySplit()
      Description copied from interface: LongSpliterator
      Specified by:
      trySplit in interface LongSpliterator
      Specified by:
      trySplit in interface java.util.Spliterator<java.lang.Long>
      Specified by:
      trySplit in interface java.util.Spliterator.OfLong
      Specified by:
      trySplit in interface java.util.Spliterator.OfPrimitive<java.lang.Long,​java.util.function.LongConsumer,​java.util.Spliterator.OfLong>
    • estimateSize

      public long estimateSize()
      Specified by:
      estimateSize in interface java.util.Spliterator<java.lang.Long>
    • characteristics

      public int characteristics()
      Specified by:
      characteristics in interface java.util.Spliterator<java.lang.Long>
    • forEachRemaining

      public void forEachRemaining​(java.util.function.LongConsumer action)
      Specified by:
      forEachRemaining in interface java.util.Spliterator.OfLong
      Specified by:
      forEachRemaining in interface java.util.Spliterator.OfPrimitive<java.lang.Long,​java.util.function.LongConsumer,​java.util.Spliterator.OfLong>
    • forEachRemaining

      @Deprecated public void forEachRemaining​(java.util.function.Consumer<? super java.lang.Long> action)
      Deprecated.
      Description copied from interface: LongSpliterator
      Specified by:
      forEachRemaining in interface LongSpliterator
      Specified by:
      forEachRemaining in interface java.util.Spliterator<java.lang.Long>
      Specified by:
      forEachRemaining in interface java.util.Spliterator.OfLong
    • clone

      public java.lang.Object clone()