Class LazyCollections


  • public final class LazyCollections
    extends java.lang.Object
    LazyCollections utility class.
    • Method Detail

      • asLazyList

        public static <T> LazyList<T> asLazyList​(java.util.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​(java.util.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​(java.util.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​(java.util.Collection<T> source)
        Returns source wrapped as a LazySet.
        Parameters:
        source - the source collection to wrap
        Returns:
        source wrapped as a LazySet