Package com.iabtcf.utils
Class IntIterable
java.lang.Object
com.iabtcf.utils.IntIterable
- Direct Known Subclasses:
BitSetIntIterable
public abstract class IntIterable extends Object implements Iterable<Integer>
An int primitive memory optimized iterable.
-
Constructor Summary
Constructors Constructor Description IntIterable() -
Method Summary
Modifier and Type Method Description abstract booleancontains(int value)booleancontainsAll(int... source)booleancontainsAny(int... source)abstract IntIteratorintIterator()booleanisEmpty()Iterator<Integer>iterator()Set<Integer>toSet()Returns a set representation of the IntIterable.IntStreamtoStream()Returns a stream representation of the IntIterable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntIterable
public IntIterable()
-
-
Method Details
-
toSet
Returns a set representation of the IntIterable. -
toStream
Returns a stream representation of the IntIterable. -
isEmpty
public boolean isEmpty() -
containsAll
public boolean containsAll(int... source) -
containsAny
public boolean containsAny(int... source) -
contains
public abstract boolean contains(int value) -
iterator
-
intIterator
-