Modifier and Type | Method and Description |
---|---|
static <T> Source<T> |
concat(List<? extends Source<? extends T>> sources)
Concatenates a list of sources.
|
static <T> Source<T> |
empty()
Returns an empty
Source . |
static <T> Source<T> |
merge(List<? extends Source<? extends T>> sortedSources,
Comparator<? super T> comparator)
Merges the sorted sources.
|
static <T> Source<T> |
wrap(Iterator<? extends T> iterator)
Wraps
Iterator object. |
static <T> Source<T> |
wrap(T... values)
Returns a
Source for the array. |
public static <T> Source<T> empty()
Source
.T
- the element type@SafeVarargs public static <T> Source<T> wrap(T... values)
Source
for the array.T
- the array element typevalues
- the target arraypublic static <T> Source<T> wrap(Iterator<? extends T> iterator)
Iterator
object.T
- the element typeiterator
- the iterator objectSource
which provides elements in the iteratorpublic static <T> Source<T> concat(List<? extends Source<? extends T>> sources)
T
- the element typesources
- the list of sourcespublic static <T> Source<T> merge(List<? extends Source<? extends T>> sortedSources, Comparator<? super T> comparator)
T
- the element typesortedSources
- sources which are sorted by the comparator
comparator
- the comparatorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.