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

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

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

This class represents a stored entity of the list. It is a wrapper for any object that is stored in the list so that the list can refer to it by using a ManagedReference, rather than the actual object itself. This makes managing sublists less intensive as each reference to an underlying entity is a fixed size.


Constructor Summary
ScalableList.Element(E e)
          Constructor for creating an Element.
 
Method Summary
(package private)  E getValue()
          Retrieves the element.
(package private)  void setValue(E e)
          Sets the value of the element
 String toString()
          Returns a String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalableList.Element

ScalableList.Element(E e)
Constructor for creating an Element.

Parameters:
e - the element to store within the Element ManagedObject
Method Detail

getValue

E getValue()
Retrieves the element.

Returns:
the element stored by this object

setValue

void setValue(E e)
Sets the value of the element

Parameters:
e - the new value to set

toString

public String toString()
Returns a String representation

Overrides:
toString in class Object
Returns:
the value in String form

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