Class ReturnIteratorStub

  • All Implemented Interfaces:
    SelfDescribing, Stub

    public class ReturnIteratorStub
    extends java.lang.Object
    implements Stub
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer describeTo​(java.lang.StringBuffer buffer)
      Appends the description of this object to the buffer.
      java.lang.Object invoke​(Invocation invocation)
      Processes the invocation.
      • Methods inherited from class java.lang.Object

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

      • ReturnIteratorStub

        public ReturnIteratorStub​(java.util.Collection collection)
      • ReturnIteratorStub

        public ReturnIteratorStub​(java.lang.Object[] array)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(Invocation invocation)
                                throws java.lang.Throwable
        Description copied from interface: Stub
        Processes the invocation.
        Specified by:
        invoke in interface Stub
        Parameters:
        invocation - The invocation to stub.
        Returns:
        The result of the invocation, if not throwing an exception. Must return null if the invocation is of a invokedMethod with a void return type.
        Throws:
        java.lang.Throwable - An exception to be thrown to the caller, if not returning a value. A checked exception thrown from this invokedMethod must be in the throws list of the invoked method.
      • describeTo

        public java.lang.StringBuffer describeTo​(java.lang.StringBuffer buffer)
        Description copied from interface: SelfDescribing
        Appends the description of this object to the buffer.
        Specified by:
        describeTo in interface SelfDescribing
        Parameters:
        buffer - The buffer that the description is appended to.
        Returns:
        The buffer passed to the invokedMethod.