org.apache.commons.cache.adt
Class WListableBase

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

public class WListableBase
extends ListableBase
implements Listable, Cloneable

An base implementation of Listable, supporting doubly-linked lists.

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

Field Summary
protected  Listable _prev
          My preceeding sibling.
 
Fields inherited from class org.apache.commons.cache.adt.ListableBase
_next
 
Constructor Summary
WListableBase()
          No arg constructor.
WListableBase(Listable prev, Listable next)
          Constructor.
 
Method Summary
 Listable getPrev()
          Throws UnsupportedOperationException.
 boolean hasPrev()
          Throws UnsupportedOperationException.
 void setPrev(Listable prev)
          Throws UnsupportedOperationException.
 
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, hasNext, setNext
 

Field Detail

_prev

protected transient Listable _prev
My preceeding sibling.

Constructor Detail

WListableBase

public WListableBase()
No arg constructor. Equivalent to WListableBase(null,null).


WListableBase

public WListableBase(Listable prev,
                     Listable next)
Constructor.

Parameters:
prev - the prev element in the list.
next - the next element in the list.
Method Detail

getPrev

public Listable getPrev()
Description copied from class: ListableBase
Throws UnsupportedOperationException.

Specified by:
getPrev in interface Listable
Overrides:
getPrev in class ListableBase
Returns:
the Listable element preceeding me, or null.

hasPrev

public boolean hasPrev()
Description copied from class: ListableBase
Throws UnsupportedOperationException.

Specified by:
hasPrev in interface Listable
Overrides:
hasPrev in class ListableBase
Returns:
true if there is a Listable element preceeding me, false otherwise.

setPrev

public void setPrev(Listable prev)
Description copied from class: ListableBase
Throws UnsupportedOperationException.

Specified by:
setPrev in interface Listable
Overrides:
setPrev in class ListableBase
Parameters:
prev - my new preceeding sibling.


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