Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollections
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollections
LazyCollection
s utility class.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> LazyBag<T>
asLazyBag
(Collection<T> source) Returnssource
wrapped as aLazyBag
.static <T> LazyList<T>
asLazyList
(Collection<T> source) Returnssource
wrapped as aLazyList
.static <T> LazyOrderedSet<T>
asLazyOrderedSet
(Collection<T> source) Returnssource
wrapped as aLazyOrderedSet
.static <T> LazySet<T>
asLazySet
(Collection<T> source) Returnssource
wrapped as aLazySet
.
-
Method Details
-
asLazyList
Returnssource
wrapped as aLazyList
.- Parameters:
source
- the source collection to wrap- Returns:
source
wrapped as aLazyList
-
asLazyOrderedSet
Returnssource
wrapped as aLazyOrderedSet
.- Parameters:
source
- the source collection to wrap- Returns:
source
wrapped as aLazyList
-
asLazyBag
Returnssource
wrapped as aLazyBag
.- Parameters:
source
- the source collection to wrap- Returns:
source
wrapped as aLazyBag
-
asLazySet
Returnssource
wrapped as aLazySet
.- Parameters:
source
- the source collection to wrap- Returns:
source
wrapped as aLazySet
-