Package io.molr.mole.core.support.domain
Class MissionStub2<P1,P2,R>
- java.lang.Object
-
- io.molr.mole.core.support.domain.MissionStub2<P1,P2,R>
-
- Type Parameters:
P1
- the type for parameter 1P2
- the type for parameter 2R
- the type for return value ofMission
being represented
- Direct Known Subclasses:
VoidStub2
public class MissionStub2<P1,P2,R> extends Object
Represents aMission
which accepts two parameters and returns a value- Author:
- HimanshuSahu31
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mission
mission()
protected Placeholder<?>
parameterAt(int index)
Map<String,Object>
parameters(P1 p1, P2 p2)
The parameter map required by the representedMission
is constructed by the arguments provided.Class<R>
returnType()
-
-
-
Method Detail
-
returnType
public Class<R> returnType()
- Returns:
- the type for return value of
Mission
being represented
-
parameters
public Map<String,Object> parameters(P1 p1, P2 p2)
The parameter map required by the representedMission
is constructed by the arguments provided.- Parameters:
p1
- the parameter 1p2
- the parameter 2- Returns:
- the parameter map constructed with the arguments provided
-
parameterAt
protected Placeholder<?> parameterAt(int index)
- Parameters:
index
- the index of parameter- Returns:
- the
Placeholder
for parameter at given index
-
-