org.littleshoot.util
Class ObjectRefImpl

java.lang.Object
  extended by org.littleshoot.util.ObjectRefImpl
All Implemented Interfaces:
ObjectRef

public final class ObjectRefImpl
extends Object
implements ObjectRef

An implementation of the ObjectRef interface.


Constructor Summary
ObjectRefImpl()
          Constructs a new object reference.
 
Method Summary
 Object object()
          Returns the object contained in this reference.
 void setObject(Object object)
          Sets the object contained in this reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRefImpl

public ObjectRefImpl()
Constructs a new object reference.

Method Detail

object

public Object object()
Returns the object contained in this reference.

Specified by:
object in interface ObjectRef
Returns:
The object contained in this reference.

setObject

public void setObject(Object object)
Sets the object contained in this reference.

Specified by:
setObject in interface ObjectRef
Parameters:
object - The object to be contained in this reference.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.