public class Channels extends Channels
Channels.ParcelableSelectable<DATA>Channels.Selectable<DATA>| Modifier and Type | Method and Description |
|---|---|
static <DATA,IN extends DATA> |
mapParcelable(InputChannel<? super Channels.ParcelableSelectable<DATA>> channel,
Collection<Integer> indexes)
Returns a map of input channels accepting the input data identified by the specified indexes.
|
static <DATA,IN extends DATA> |
mapParcelable(InputChannel<? super Channels.ParcelableSelectable<DATA>> channel,
int... indexes)
Returns a map of input channels accepting the input data identified by the specified indexes.
|
static <DATA,IN extends DATA> |
mapParcelable(int startIndex,
int rangeSize,
InputChannel<? super Channels.ParcelableSelectable<DATA>> channel)
Returns a map of input channels accepting the input data identified by the specified indexes.
|
static <OUT> OutputChannel<? extends Channels.ParcelableSelectable<OUT>> |
mergeParcelable(SparseArrayCompat<? extends OutputChannel<? extends OUT>> channelMap)
Merges the specified channels into a selectable one.
|
mergeParcelable, mergeParcelable, mergeParcelable, mergeParcelable, selectParcelable, toSelectablecombine, combine, combine, combine, combine, distribute, distribute, distributeAndFlush, distributeAndFlush, join, join, joinAndFlush, joinAndFlush, map, map, map, map, map, map, merge, merge, merge, merge, merge, select, select, toSelectable@Nonnull public static <DATA,IN extends DATA> SparseArrayCompat<TransportChannel<IN>> mapParcelable(@Nonnull InputChannel<? super Channels.ParcelableSelectable<DATA>> channel, @Nonnull Collection<Integer> indexes)
DATA - the channel data type.IN - the input data type.channel - the selectable channel.indexes - the collection of indexes.@Nonnull public static <DATA,IN extends DATA> SparseArrayCompat<TransportChannel<IN>> mapParcelable(@Nonnull InputChannel<? super Channels.ParcelableSelectable<DATA>> channel, @Nonnull int... indexes)
DATA - the channel data type.IN - the input data type.channel - the selectable channel.indexes - the array of indexes.@Nonnull public static <DATA,IN extends DATA> SparseArrayCompat<TransportChannel<IN>> mapParcelable(int startIndex, int rangeSize, @Nonnull InputChannel<? super Channels.ParcelableSelectable<DATA>> channel)
DATA - the channel data type.IN - the input data type.startIndex - the selectable start index.rangeSize - the size of the range of indexes (must be positive).channel - the selectable channel.IllegalArgumentException - if the specified range size is negative or 0.@Nonnull public static <OUT> OutputChannel<? extends Channels.ParcelableSelectable<OUT>> mergeParcelable(@Nonnull SparseArrayCompat<? extends OutputChannel<? extends OUT>> channelMap)
OUT - the output data type.channelMap - the map of indexes and output channels.IllegalArgumentException - if the specified map is empty.