- All Implemented Interfaces:
In<T>, Out<T>, Var<T>
public class MockVar<T>
extends Object
implements Var<T>
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors
-
Method Summary
Retrieves the value for the variable.
void
Sets the value for the variable.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MockVar
public MockVar()
Default constructor.
-
MockVar
Instantiate.
- Parameters:
value - Initial value.
-
Method Details
-
set
Description copied from interface: Out
Sets the value for the variable.
- Specified by:
set in interface Out<T>
- Parameters:
value - Value for the variable.
-
get
Description copied from interface: In
Retrieves the value for the variable.
- Specified by:
get in interface In<T>
- Returns:
- Value for the variable.