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