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()voidset(int index, OneResult<?> result)protected voidsetFirst(OneResult<V1> v1)protected voidsetSecond(OneResult<V2> v2)intsize()-
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:
getFirstin interfaceMultipleResults2<V1,V2>
-
getSecond
public OneResult<V2> getSecond()
- Specified by:
getSecondin interfaceMultipleResults2<V1,V2>
-
set
public void set(int index, OneResult<?> result)- Specified by:
setin interfaceMutableMultipleResults- Overrides:
setin classAbstractMutableMultipleResults
-
size
public final int size()
- Specified by:
sizein interfaceMultipleResults- Overrides:
sizein classAbstractMultipleResults
-
-