|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.cache.adt.ListableBase
public class ListableBase
An base implementation of Listable, supporting
singly-linked lists.
| Field Summary | |
|---|---|
protected Listable |
_next
My following sibling. |
| Constructor Summary | |
|---|---|
ListableBase()
No arg constructor. |
|
ListableBase(Listable next)
Constructor. |
|
| Method Summary | |
|---|---|
Listable |
getNext()
Return the Listable element following me, or null if I am the last element in the list. |
Listable |
getPrev()
Throws UnsupportedOperationException. |
boolean |
hasNext()
Return true if there is a Listable element following me, false otherwise. |
boolean |
hasPrev()
Throws UnsupportedOperationException. |
void |
setNext(Listable next)
Change my next element to next. |
void |
setPrev(Listable prev)
Throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient Listable _next
| Constructor Detail |
|---|
public ListableBase()
ListableBase(null).
public ListableBase(Listable next)
next - the next element in the list.| Method Detail |
|---|
public Listable getNext()
Listable
getNext in interface Listablepublic boolean hasNext()
Listable
hasNext in interface Listablepublic void setNext(Listable next)
ListableListable.getPrev()
value of next.
setNext in interface Listablenext - my new following sibling.
public Listable getPrev()
throws UnsupportedOperationException
UnsupportedOperationException.
getPrev in interface ListableUnsupportedOperationException - if I am a singly-linked list.
public boolean hasPrev()
throws UnsupportedOperationException
UnsupportedOperationException.
hasPrev in interface ListableUnsupportedOperationException - if I am a singly-linked list.
public void setPrev(Listable prev)
throws UnsupportedOperationException
UnsupportedOperationException.
setPrev in interface Listableprev - my new preceeding sibling.
UnsupportedOperationException - if I am a singly-linked or read-only list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||