Class MissionStub0<R>

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

    public class MissionStub0<R>
    extends Object
    Represents a Mission which does not accept parameters and returns a value
    Author:
    HimanshuSahu31
    • Constructor Detail

      • MissionStub0

        public MissionStub0​(Mission mission,
                            Class<R> returnType)
        Parameters:
        mission - the Mission being represented
        returnType - the type for return value of Mission being represented
      • MissionStub0

        public MissionStub0​(String missionName,
                            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​(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​(Placeholder<P1> p1,
                                                                              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 Mission mission()
        Returns:
        the Mission being represented
      • returnType

        public Class<R> returnType()
        Returns:
        the type for return value of Mission being represented
      • parameters

        public Map<String,​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