T - the type of the input of this DominoR - the type of the output of this Domino
T是原本输入的参数类型,R是将传给下面的参数类型!public class Domino<T,R>
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static DominoCenter |
DOMINO_CENTER |
protected static TargetCenter |
TARGET_CENTER |
| 构造器和说明 |
|---|
Domino(java.lang.Object label)
This constructor is deprecated.
|
Domino(java.lang.Object label,
Tile<T,R> tile)
This constructor is deprecated.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Domino<T,R> |
background() |
Domino<T,R> |
backgroundQueue() |
<U> RetrofitDomino<T,U> |
beginRetrofitTask(AbstractRetrofitTask<R,U> task) |
<U> RetrofitDomino2<T,R,U> |
beginRetrofitTaskKeepingInput(AbstractRetrofitTask<R,U> task) |
<U1,U2,S1,S2> |
beginTask(Task<R,U1,S1> task,
Function2<R,U1,U2> func1,
Function2<R,S1,S2> func2) |
<U,S> TaskDomino<T,U,S> |
beginTask(Task<R,U,S> task) |
<U,S> TaskDomino<T,Pair<R,U>,S> |
beginTaskKeepingInput(Task<R,U,S> task) |
<U> Domino<T,U> |
clear() |
<S1,S2,V> Domino<T,V> |
combine(Domino<? super R,S1> domino1,
Domino<? super R,S2> domino2,
Function2<? super S1,? super S2,? extends V> combiner) |
<S1,S2,U1,U2,V> |
combineTask(TaskDomino<? super R,S1,U1> taskDomino1,
TaskDomino<? super R,S2,U2> taskDomino2,
Function2<? super S1,? super S2,? extends V> combiner) |
void |
commit() |
<S extends Domino<T,?>> |
convert(DominoConverter<T,R,S> converter)
Convert this Domino into another one.
|
<U> Domino<T,U> |
dominoMap(Domino<? super R,? extends U> domino)
Pass the input of this Domino to another Domino and regard its output as the output of this Domino.
|
Domino<T,R> |
filter(Function1<? super R,java.lang.Boolean> filter) |
<U> Domino<T,U> |
flatMap(Function1<? super R,java.util.List<U>> map) |
java.lang.Object |
getLabel() |
Tile<T,R> |
getPlayer() |
<U> Domino<T,U> |
lift(Function1<java.util.concurrent.CopyOnWriteArrayList<R>,java.util.concurrent.CopyOnWriteArrayList<U>> function) |
<U,S> Domino<T,U> |
map(java.lang.Class<S> target,
Function2<? super S,? super R,? extends U> map) |
<U> Domino<T,U> |
map(Function1<? super R,? extends U> map) |
<U> Domino<T,U> |
merge(Domino<? super R,? extends U>[] dominoes)
Pass the input of this Domino to all the Dominoes in an array and merge their outputs into one,
which is the output of this Domino.
|
<U> Domino<T,U> |
merge(Domino<? super R,? extends U> domino1,
Domino<? super R,? extends U> domino2)
Pass the input of this Domino to another two Dominoes and merge their outputs into one,
which is the output of this Domino.
|
<U> Domino<T,U> |
merge(Domino<? super R,? extends U> domino1,
Domino<? super R,? extends U> domino2,
Domino<? super R,? extends U> domino3)
Pass the input of this Domino to another three Dominoes and merge their outputs into one,
which is the output of this Domino.
|
Domino<T,R> |
perform(Action0 action0)
Perform an action.
|
Domino<T,R> |
perform(Action1<? super R> action1)
Perform an action.
|
<U> Domino<T,R> |
perform(java.lang.Class<? extends U> target,
TargetAction0<? super U> targetAction0)
Perform an action on all of the registered instances of a specified class.
|
<U> Domino<T,R> |
perform(java.lang.Class<? extends U> target,
TargetAction1<? super U,? super R> targetAction1)
Perform an action on all of the registered instances of a specified class.
|
Domino<T,R> |
perform(Domino<? super R,?> domino)
Pass the input of this Domino to another Domino and play it.
|
void |
play(java.util.concurrent.CopyOnWriteArrayList<T> input) |
<U> Domino<T,U> |
reduce(Function1<java.util.List<R>,? extends U> reducer) |
Domino<T,R> |
throttle(long windowDuration,
java.util.concurrent.TimeUnit unit)
Specify a window duration, during which there will be only one group of input to be passed
into this Domino.
|
Domino<T,R> |
uiThread() |
protected static final DominoCenter DOMINO_CENTER
protected static final TargetCenter TARGET_CENTER
public Domino(java.lang.Object label)
label - public java.lang.Object getLabel()
public <S extends Domino<T,?>> S convert(DominoConverter<T,R,S> converter)
S - converter - public <U> Domino<T,R> perform(java.lang.Class<? extends U> target, TargetAction0<? super U> targetAction0)
U - target - the specified class.targetAction0 - action to perform.public <U> Domino<T,R> perform(java.lang.Class<? extends U> target, TargetAction1<? super U,? super R> targetAction1)
U - target - targetAction1 - public Domino<T,R> perform(Domino<? super R,?> domino)
domino - public <U> Domino<T,U> dominoMap(Domino<? super R,? extends U> domino)
U - domino - public <U> Domino<T,U> merge(Domino<? super R,? extends U> domino1, Domino<? super R,? extends U> domino2)
U - domino1 - domino2 - public <U> Domino<T,U> merge(Domino<? super R,? extends U> domino1, Domino<? super R,? extends U> domino2, Domino<? super R,? extends U> domino3)
U - domino1 - domino2 - domino3 - public <U> Domino<T,U> merge(Domino<? super R,? extends U>[] dominoes)
U - dominoes - public <S1,S2,V> Domino<T,V> combine(Domino<? super R,S1> domino1, Domino<? super R,S2> domino2, Function2<? super S1,? super S2,? extends V> combiner)
public <S1,S2,U1,U2,V> Domino<T,V> combineTask(TaskDomino<? super R,S1,U1> taskDomino1, TaskDomino<? super R,S2,U2> taskDomino2, Function2<? super S1,? super S2,? extends V> combiner)
public Domino<T,R> throttle(long windowDuration, java.util.concurrent.TimeUnit unit)
windowDuration - unit - public <U> Domino<T,U> lift(Function1<java.util.concurrent.CopyOnWriteArrayList<R>,java.util.concurrent.CopyOnWriteArrayList<U>> function)
public <U,S> Domino<T,U> map(java.lang.Class<S> target, Function2<? super S,? super R,? extends U> map)
public <U,S> TaskDomino<T,U,S> beginTask(Task<R,U,S> task)
public <U1,U2,S1,S2> TaskDomino<T,U2,S2> beginTask(Task<R,U1,S1> task, Function2<R,U1,U2> func1, Function2<R,S1,S2> func2)
public <U,S> TaskDomino<T,Pair<R,U>,S> beginTaskKeepingInput(Task<R,U,S> task)
public <U> RetrofitDomino<T,U> beginRetrofitTask(AbstractRetrofitTask<R,U> task)
public <U> RetrofitDomino2<T,R,U> beginRetrofitTaskKeepingInput(AbstractRetrofitTask<R,U> task)
public void play(java.util.concurrent.CopyOnWriteArrayList<T> input)
public void commit()