Package org.jdeferred2.impl
Class MutableMultipleResults2<V1,V2>
- java.lang.Object
-
- org.jdeferred2.impl.AbstractMultipleResults
-
- org.jdeferred2.impl.AbstractMutableMultipleResults
-
- org.jdeferred2.impl.MutableMultipleResults2<V1,V2>
-
- All Implemented Interfaces:
java.lang.Iterable<OneResult<?>>
,MutableMultipleResults
,MultipleResults
,MultipleResults2<V1,V2>
class MutableMultipleResults2<V1,V2> extends AbstractMutableMultipleResults implements MutableMultipleResults, MultipleResults2<V1,V2>
Contains 2 instances ofOneResult
.
-
-
Constructor Summary
Constructors Constructor Description MutableMultipleResults2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OneResult<V1>
getFirst()
OneResult<V2>
getSecond()
void
set(int index, OneResult<?> result)
protected void
setFirst(OneResult<V1> v1)
protected void
setSecond(OneResult<V2> v2)
int
size()
-
Methods inherited from class org.jdeferred2.impl.AbstractMultipleResults
get, iterator, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jdeferred2.multiple.MultipleResults
get
-
-
-
-
Method Detail
-
getFirst
public OneResult<V1> getFirst()
- Specified by:
getFirst
in interfaceMultipleResults2<V1,V2>
-
getSecond
public OneResult<V2> getSecond()
- Specified by:
getSecond
in interfaceMultipleResults2<V1,V2>
-
set
public void set(int index, OneResult<?> result)
- Specified by:
set
in interfaceMutableMultipleResults
- Overrides:
set
in classAbstractMutableMultipleResults
-
size
public final int size()
- Specified by:
size
in interfaceMultipleResults
- Overrides:
size
in classAbstractMultipleResults
-
-