Class LazyCollections

java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollections

public final class LazyCollections extends Object
LazyCollections utility class.
  • Method Details

    • asLazyList

      public static <T> LazyList<T> asLazyList(Collection<T> source)
      Returns source wrapped as a LazyList.
      Parameters:
      source - the source collection to wrap
      Returns:
      source wrapped as a LazyList
    • asLazyOrderedSet

      public static <T> LazyOrderedSet<T> asLazyOrderedSet(Collection<T> source)
      Returns source wrapped as a LazyOrderedSet.
      Parameters:
      source - the source collection to wrap
      Returns:
      source wrapped as a LazyList
    • asLazyBag

      public static <T> LazyBag<T> asLazyBag(Collection<T> source)
      Returns source wrapped as a LazyBag.
      Parameters:
      source - the source collection to wrap
      Returns:
      source wrapped as a LazyBag
    • asLazySet

      public static <T> LazySet<T> asLazySet(Collection<T> source)
      Returns source wrapped as a LazySet.
      Parameters:
      source - the source collection to wrap
      Returns:
      source wrapped as a LazySet