Package org.eclipse.m2m.atl.emftvm.util
Class LazyBag.IntegerRangeBag
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection<Integer>
org.eclipse.m2m.atl.emftvm.util.LazyBag<Integer>
org.eclipse.m2m.atl.emftvm.util.LazyBag.IntegerRangeBag
- All Implemented Interfaces:
- Iterable<Integer>,- Collection<Integer>
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.m2m.atl.emftvm.util.LazyBagLazyBag.BagIntersectionIterator, LazyBag.IncludingBag<E>, LazyBag.IntegerRangeBag, LazyBag.LongRangeBag, LazyBag.UnionBag<E>Nested classes/interfaces inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollectionLazyCollection.AppendIterator, LazyCollection.CachingIterator, LazyCollection.CachingSetIterator, LazyCollection.CollectIterator<T>, LazyCollection.ExcludingIterator, LazyCollection.FilterIterator, LazyCollection.FlattenIterator, LazyCollection.FlattenSetIterator, LazyCollection.IntegerRangeListIterator, LazyCollection.IntersectionIterator, LazyCollection.IteratorToListIterator, LazyCollection.LongRangeListIterator, LazyCollection.ReadOnlyIterator<E>, LazyCollection.ReadOnlyListIterator<E>, LazyCollection.RejectIterator, LazyCollection.ReverseIterator, LazyCollection.ReverseListIterator, LazyCollection.SelectIterator, LazyCollection.SubListIterator, LazyCollection.SubListListIterator, LazyCollection.SubtractionIterator, LazyCollection.UnionIterator, LazyCollection.UnionSetIterator, LazyCollection.WrappedIterator, LazyCollection.WrappedListIterator
- 
Field SummaryFieldsFields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollectioncache, dataSource, occurrences
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyBagasBag, asString, collect, equals, excluding, excludingAll, flatten, hashCode, including, including, includingAll, includingAll, includingRange, intersection, intersection, reject, select, sortedBy, union, unionMethods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollectionadd, addAll, any, appendElements, asOrderedSet, asSequence, asSet, clear, containsAll, containsAny, excludes, excludesAll, exists, exists2, forAll, forAll2, includes, includesAll, isUnique, iterate, mappedBy, mappedBySingle, max, min, notEmpty, one, product, remove, removeAll, retainAll, sum, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, spliterator, stream, toArray
- 
Field Details- 
firstprotected final int first
- 
lastprotected final int last
 
- 
- 
Constructor Details- 
IntegerRangeBagpublic IntegerRangeBag(int first, int last) Creates a newLazyBag.IntegerRangeBag.- Parameters:
- first- the first object of the range to include
- last- the last object of the range to include
 
 
- 
- 
Method Details- 
createCacheprotected void createCache()Creates the cache collections.- Overrides:
- createCachein class- LazyBag<Integer>
 
- 
contains- Specified by:
- containsin interface- Collection<Integer>
- Overrides:
- containsin class- LazyCollection<Integer>
 
- 
countReturns the number of times thatobjectoccurs in the collection self.- Overrides:
- countin class- LazyCollection<Integer>
- Parameters:
- object- the object to check for
- Returns:
- The number of times that objectoccurs in the collection self.
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Collection<Integer>
- Overrides:
- isEmptyin class- LazyCollection<Integer>
 
- 
iterator- Specified by:
- iteratorin interface- Collection<Integer>
- Specified by:
- iteratorin interface- Iterable<Integer>
- Overrides:
- iteratorin class- LazyCollection<Integer>
 
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<Integer>
- Overrides:
- sizein class- LazyCollection<Integer>
 
 
-