org.apache.commons.cache.adt
Class ListableObject

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

public class ListableObject
extends ListableBase
implements Listable, Cloneable

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

Version:
$Id: ListableObject.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.ListableBase
_next
 
Constructor Summary
ListableObject(Object val)
          Equivalent to ListableObject(val,null).
ListableObject(Object val, 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.ListableBase
getNext, getPrev, hasNext, hasPrev, setNext, setPrev
 
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

ListableObject

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


ListableObject

public ListableObject(Object val,
                      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.