public abstract class Windowing extends Object
| Constructor and Description |
|---|
Windowing() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<List<Maybe<T>>> |
centered(int windowSize,
Iterable<T> iterable)
Adapts an iterable to an iterator showing a sliding centered window of
the contained elements.
|
static <W extends Collection<Maybe<T>>,T> |
centered(int windowSize,
Iterable<T> iterable,
Provider<W> provider)
Adapts an iterable to an iterator showing a sliding centered window of
the contained elements.
|
static <T> Iterator<List<Maybe<T>>> |
centered(int windowSize,
Iterator<T> iterator)
Adapts an iterator to an iterator showing a sliding centered window of
the contained elements.
|
static <W extends Collection<Maybe<T>>,T> |
centered(int windowSize,
Iterator<T> iterator,
Provider<W> provider)
Adapts an iterator to an iterator showing a sliding centered window of
the contained elements.
|
static <T> Iterator<List<T>> |
window(int windowSize,
Iterable<T> iterable)
Adapts an iterable to an iterator showing a sliding window of the
contained elements.
|
static <W extends Collection<T>,T> |
window(int windowSize,
Iterable<T> iterable,
Provider<W> provider)
Adapts an iterable to an iterator showing a sliding window of the
contained elements.
|
static <T> Iterator<List<T>> |
window(int windowSize,
Iterator<T> iterator)
Adapts an iterator to an iterator showing a sliding window of the
contained elements.
|
static <W extends Collection<T>,T> |
window(int windowSize,
Iterator<T> iterator,
Provider<W> provider)
Adapts an iterator to an iterator showing a sliding window of the
contained elements.
|
public static <T> Iterator<List<T>> window(int windowSize, Iterator<T> iterator)
T - the iterator element typewindowSize - the window sizeiterator - the iterator to be adaptedpublic static <T> Iterator<List<T>> window(int windowSize, Iterable<T> iterable)
T - the iterator element typewindowSize - the window sizeiterable - the iterable to be adaptedpublic static <W extends Collection<T>,T> Iterator<W> window(int windowSize, Iterator<T> iterator, Provider<W> provider)
W - the window typeT - the iterator element typewindowSize - the window sizeiterator - the iterable to be adaptedprovider - the provider providing the window collectionpublic static <W extends Collection<T>,T> Iterator<W> window(int windowSize, Iterable<T> iterable, Provider<W> provider)
W - the window typeT - the iterator element typewindowSize - the window sizeiterable - the iterable to be adaptedprovider - the provider providing the window collectionpublic static <T> Iterator<List<Maybe<T>>> centered(int windowSize, Iterator<T> iterator)
T - the iterator element typewindowSize - the window size (must be an odd positive integer)iterator - the iterator to be adaptedpublic static <T> Iterator<List<Maybe<T>>> centered(int windowSize, Iterable<T> iterable)
T - the iterator element typewindowSize - the window size (must be an odd positive integer)iterable - the iterable to be adaptedpublic static <W extends Collection<Maybe<T>>,T> Iterator<W> centered(int windowSize, Iterator<T> iterator, Provider<W> provider)
W - the window typeT - the iterator element typewindowSize - the window size (must be an odd positive integer)iterator - the iterator to be adaptedprovider - the provider providing the window collectionpublic static <W extends Collection<Maybe<T>>,T> Iterator<W> centered(int windowSize, Iterable<T> iterable, Provider<W> provider)
W - the window typeT - the iterator element typewindowSize - the window size (must be an odd positive integer)iterable - the iterable to be adaptedprovider - the provider providing the window collectionCopyright © 2012. All Rights Reserved.