Class MissionStubs


  • public final class MissionStubs
    extends java.lang.Object
    A factory class to generate Mission Stubs
    • Constructor Summary

      Constructors 
      Constructor Description
      MissionStubs()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static VoidStub0 stub​(java.lang.String missionName)
      Constructs a VoidStub0 which has zero arguments and no return type
      static <R> MissionStub0<R> stub​(java.lang.String missionName, java.lang.Class<R> returnType)
      Constructs a MissionStub0 which has zero arguments and a return type
      • Methods inherited from class java.lang.Object

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

      • MissionStubs

        public MissionStubs()
    • Method Detail

      • stub

        public static VoidStub0 stub​(java.lang.String missionName)
        Constructs a VoidStub0 which has zero arguments and no return type
        Parameters:
        missionName - the name of the Mission
        Returns:
        an instance of VoidStub0
      • stub

        public static <R> MissionStub0<R> stub​(java.lang.String missionName,
                                               java.lang.Class<R> returnType)
        Constructs a MissionStub0 which has zero arguments and a return type
        Type Parameters:
        R - the type for return value of the Mission
        Parameters:
        missionName - the name of the Mission
        returnType - the return type of the Mission
        Returns:
        an instance of MissionStub0