org.apache.commons.cache.adt
Class WListableObject

java.lang.Object
  extended by org.apache.commons.cache.adt.ListableBase
      extended by org.apache.commons.cache.adt.WListableBase
          extended by org.apache.commons.cache.adt.WListableObject
All Implemented Interfaces:
Cloneable, Listable

public class WListableObject
extends WListableBase
implements Listable, Cloneable

A simple Listable supporting doubly-linked lists of arbitrary Objects.

Version:
$Id: WListableObject.java 155435 2005-02-26 13:17:27Z dirkv $
Author:
Rodney Waldhoff

Field Summary
protected  Object _val
          My value.
 
Fields inherited from class org.apache.commons.cache.adt.WListableBase
_prev
 
Fields inherited from class org.apache.commons.cache.adt.ListableBase
_next
 
Constructor Summary
WListableObject(Object val)
          Equivalent to WListableObject(val,null,null).
WListableObject(Object val, Listable prev, Listable next)
           
 
Method Summary
 Object getValue()
          Return the Object I'm wrapping.
 void setValue(Object obj)
          Set the Object I'm wrapping.
 
Methods inherited from class org.apache.commons.cache.adt.WListableBase
getPrev, hasPrev, setPrev
 
Methods inherited from class org.apache.commons.cache.adt.ListableBase
getNext, hasNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.cache.adt.Listable
getNext, getPrev, hasNext, hasPrev, setNext, setPrev
 

Field Detail

_val

protected Object _val
My value.

Constructor Detail

WListableObject

public WListableObject(Object val)
Equivalent to WListableObject(val,null,null).


WListableObject

public WListableObject(Object val,
                       Listable prev,
                       Listable next)
Parameters:
val - my value
next - the next Listable.
Method Detail

getValue

public Object getValue()
Return the Object I'm wrapping.

Returns:
the Object I'm wrapping.

setValue

public void setValue(Object obj)
Set the Object I'm wrapping.

Parameters:
the - Object to wrap.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.