com.sun.sgs.app.util
Class ScalableList.DummyConnector<E>

java.lang.Object
  extended by com.sun.sgs.app.util.ScalableList.DummyConnector<E>
Type Parameters:
E - the type of element stored in the ScalableList
All Implemented Interfaces:
ManagedObject, Serializable
Enclosing class:
ScalableList<E>

static class ScalableList.DummyConnector<E>
extends Object
implements ManagedObject, Serializable

The DummyConnector class is used as a junction point for two ManagedReferences so that changes to the second ManagedReference need not affect the top structure. The class is fairly simple, only containing methods which enable the value to be easily set and retrieved.


Constructor Summary
ScalableList.DummyConnector()
          Default no-argument constructor.
ScalableList.DummyConnector(ScalableList.Node<E> reference)
          Constructor which accepts the object
 
Method Summary
(package private)  ScalableList.ListNode<E> getRefAsListNode()
          Retrieves the reference as a ListNode.
(package private)  void setRef(ScalableList.Node<E> newRef)
          Sets the reference for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalableList.DummyConnector

ScalableList.DummyConnector()
Default no-argument constructor.


ScalableList.DummyConnector

ScalableList.DummyConnector(ScalableList.Node<E> reference)
Constructor which accepts the object

Parameters:
reference - the element which this object is to point to
Method Detail

setRef

void setRef(ScalableList.Node<E> newRef)
Sets the reference for this object.

Parameters:
newRef - the intended new reference

getRefAsListNode

ScalableList.ListNode<E> getRefAsListNode()
Retrieves the reference as a ListNode.

Returns:
the reference as a ListNode, or null if it does not exist

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved