java.lang.Object
org.jhotdraw8.icollection.readonly.AbstractReadOnlyCollection<Integer>
org.jhotdraw8.icollection.readonly.AbstractReadOnlySet<Integer>
org.jhotdraw8.collection.primitive.IntRangeSet
- All Implemented Interfaces:
Iterable<Integer>,ReadOnlyCollection<Integer>,ReadOnlySet<Integer>
Represents a set of integers in a given range.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jhotdraw8.icollection.readonly.AbstractReadOnlySet
equals, hashCodeMethods inherited from class org.jhotdraw8.icollection.readonly.AbstractReadOnlyCollection
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyCollection
asCollection, containsAll, isEmpty, stream, toArray, toArrayMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySet
asSet, characteristics
-
Constructor Details
-
IntRangeSet
public IntRangeSet(int from, int to) Creates a new instance.- Parameters:
from- from inclusiveto- exclusive
-
-
Method Details
-
iterator
-
size
public int size() -
contains
- Specified by:
containsin interfaceReadOnlyCollection<Integer>- Overrides:
containsin classAbstractReadOnlyCollection<Integer>
-