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