Package io.molr.mole.core.support.domain
Class MissionStub0<R>
- java.lang.Object
-
- io.molr.mole.core.support.domain.MissionStub0<R>
-
-
Constructor Summary
Constructors Constructor Description MissionStub0(Mission mission, Class<R> returnType)
MissionStub0(String missionName, Class<R> returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mission
mission()
Map<String,Object>
parameters()
The parameter map required by the representedMission
is constructed by the arguments provided.Class<R>
returnType()
<P1> MissionStub1<P1,R>
withParameters(Placeholder<P1> p1)
Constructs a representation ofMission
which accepts one parameter and returns a value<P1,P2>
MissionStub2<P1,P2,R>withParameters(Placeholder<P1> p1, Placeholder<P2> p2)
Constructs a representation ofMission
which accepts two parameters and returns a value
-
-
-
Method Detail
-
withParameters
public <P1> MissionStub1<P1,R> withParameters(Placeholder<P1> p1)
Constructs a representation ofMission
which accepts one parameter and returns a value- Type Parameters:
P1
- the type of parameter 1- Parameters:
p1
- thePlaceholder
for parameter 1- Returns:
- an instance of
MissionStub1
-
withParameters
public <P1,P2> MissionStub2<P1,P2,R> withParameters(Placeholder<P1> p1, Placeholder<P2> p2)
Constructs a representation ofMission
which accepts two parameters and returns a value- Type Parameters:
P1
- the type of parameter 1P2
- the type of parameter 2- Parameters:
p1
- thePlaceholder
for parameter 1p2
- thePlaceholder
for parameter 2- Returns:
- an instance of
MissionStub1
-
returnType
public Class<R> returnType()
- Returns:
- the type for return value of
Mission
being represented
-
-