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