Package io.molr.mole.core.support.domain
Class MissionStub0<R>
- java.lang.Object
-
- io.molr.mole.core.support.domain.MissionStub0<R>
-
- Type Parameters:
R
- the type for return value ofMission
being represented
- Direct Known Subclasses:
VoidStub0
public class MissionStub0<R> extends java.lang.Object
Represents aMission
which does not accept parameters and returns a value
-
-
Constructor Summary
Constructors Constructor Description MissionStub0(io.molr.commons.domain.Mission mission, java.lang.Class<R> returnType)
MissionStub0(java.lang.String missionName, java.lang.Class<R> returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.molr.commons.domain.Mission
mission()
java.util.Map<java.lang.String,java.lang.Object>
parameters()
The parameter map required by the representedMission
is constructed by the arguments provided.java.lang.Class<R>
returnType()
<P1> MissionStub1<P1,R>
withParameters(io.molr.commons.domain.Placeholder<P1> p1)
Constructs a representation ofMission
which accepts one parameter and returns a value<P1,P2>
MissionStub2<P1,P2,R>withParameters(io.molr.commons.domain.Placeholder<P1> p1, io.molr.commons.domain.Placeholder<P2> p2)
Constructs a representation ofMission
which accepts two parameters and returns a value
-
-
-
Constructor Detail
-
MissionStub0
public MissionStub0(io.molr.commons.domain.Mission mission, java.lang.Class<R> returnType)
- Parameters:
mission
- theMission
being representedreturnType
- the type for return value ofMission
being represented
-
MissionStub0
public MissionStub0(java.lang.String missionName, java.lang.Class<R> returnType)
- Parameters:
missionName
- the mission namereturnType
- the type for return value ofMission
being represented
-
-
Method Detail
-
withParameters
public <P1> MissionStub1<P1,R> withParameters(io.molr.commons.domain.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(io.molr.commons.domain.Placeholder<P1> p1, io.molr.commons.domain.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
-
mission
public io.molr.commons.domain.Mission mission()
- Returns:
- the
Mission
being represented
-
returnType
public java.lang.Class<R> returnType()
- Returns:
- the type for return value of
Mission
being represented
-
parameters
public java.util.Map<java.lang.String,java.lang.Object> parameters()
The parameter map required by the representedMission
is constructed by the arguments provided.- Returns:
- the parameter map constructed with the arguments provided. In this case, there are zero args
-
-