Class SetBitsIterable

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.Long>

    public class SetBitsIterable
    extends java.lang.Object
    implements java.lang.Iterable<java.lang.Long>
    An iterable over the set bits in a BitSet.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetBitsIterable​(com.carrotsearch.hppc.BitSet set)  
      SetBitsIterable​(com.carrotsearch.hppc.BitSet set, long offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.PrimitiveIterator.OfLong iterator()  
      java.util.Spliterator.OfLong spliterator()  
      java.util.stream.LongStream stream()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • SetBitsIterable

        public SetBitsIterable​(com.carrotsearch.hppc.BitSet set,
                               long offset)
      • SetBitsIterable

        public SetBitsIterable​(com.carrotsearch.hppc.BitSet set)
    • Method Detail

      • iterator

        public java.util.PrimitiveIterator.OfLong iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Long>
      • stream

        public java.util.stream.LongStream stream()
      • spliterator

        public java.util.Spliterator.OfLong spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<java.lang.Long>