KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > VoidReturnValues


1 package com.mockobjects;
2
3 /**
4  * Sequence of void values as required by MockMaker
5  * This is a generic class that should have been introduced to the mockobjects code stream instead of
6  * being separately included in org.mockobjects.
7  * It is possibly similar to a ReturnObjectList?
8  */

9 public class VoidReturnValues extends ReturnValues {
10
11     public VoidReturnValues() {
12     }
13
14     public VoidReturnValues(String JavaDoc name, boolean keepUsingLastReturnValue) {
15         super(name, keepUsingLastReturnValue);
16     }
17
18     public VoidReturnValues(boolean keepUsingLastReturnValue) {
19         super(keepUsingLastReturnValue);
20     }
21
22     public Object JavaDoc getNext() {
23         return myContents.isEmpty() ? null : pop();
24     }
25 }
26
Popular Tags