|
GNU Trove | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgnu.trove.list.TLinkableAdapter<T>
public abstract class TLinkableAdapter<T extends TLinkable>
Simple adapter class implementing TLinkable, so you don't have to. Example:
private class MyObject extends TLinkableAdapter {
private final String value;
MyObject( String value ) {
this.value = value;
}
public String getValue() {
return value;
}
}
| Field Summary |
|---|
| Fields inherited from interface gnu.trove.list.TLinkable |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
TLinkableAdapter()
|
|
| Method Summary | |
|---|---|
T |
getNext()
Returns the linked list node after this one. |
T |
getPrevious()
Returns the linked list node before this one. |
void |
setNext(T next)
Sets the linked list node after this one. |
void |
setPrevious(T prev)
Sets the linked list node before this one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TLinkableAdapter()
| Method Detail |
|---|
public T getNext()
TLinkable
getNext in interface TLinkable<T extends TLinkable>TLinkable valuepublic void setNext(T next)
TLinkable
setNext in interface TLinkable<T extends TLinkable>next - a TLinkable valuepublic T getPrevious()
TLinkable
getPrevious in interface TLinkable<T extends TLinkable>TLinkable valuepublic void setPrevious(T prev)
TLinkable
setPrevious in interface TLinkable<T extends TLinkable>prev - a TLinkable value
|
GNU Trove | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||