Class MissionStub0<R>

  • Type Parameters:
    R - the type for return value of Mission being represented
    Direct Known Subclasses:
    VoidStub0

    public class MissionStub0<R>
    extends java.lang.Object
    Represents a Mission 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 represented Mission 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 of Mission 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 of Mission which accepts two parameters and returns a value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MissionStub0

        public MissionStub0​(io.molr.commons.domain.Mission mission,
                            java.lang.Class<R> returnType)
        Parameters:
        mission - the Mission being represented
        returnType - the type for return value of Mission being represented
      • MissionStub0

        public MissionStub0​(java.lang.String missionName,
                            java.lang.Class<R> returnType)
        Parameters:
        missionName - the mission name
        returnType - the type for return value of Mission being represented
    • Method Detail

      • withParameters

        public <P1> MissionStub1<P1,​R> withParameters​(io.molr.commons.domain.Placeholder<P1> p1)
        Constructs a representation of Mission which accepts one parameter and returns a value
        Type Parameters:
        P1 - the type of parameter 1
        Parameters:
        p1 - the Placeholder 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 of Mission which accepts two parameters and returns a value
        Type Parameters:
        P1 - the type of parameter 1
        P2 - the type of parameter 2
        Parameters:
        p1 - the Placeholder for parameter 1
        p2 - the Placeholder 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 represented Mission is constructed by the arguments provided.
        Returns:
        the parameter map constructed with the arguments provided. In this case, there are zero args