E - public class LinkedTreeSupportNode<E> extends Object implements ILinkedListSupportNode<E>, Comparable<LinkedTreeSupportNode<E>>, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
LinkedTreeSupportNode(Comparator<? super E> comparator) |
protected |
LinkedTreeSupportNode(Object element,
Comparator<? super E> comparator) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LinkedTreeSupportNode<E> node) |
E |
getElement() |
ILinkedListSupportNode<E> |
getNext() |
ILinkedListSupportNode<E> |
getPrevious() |
static LinkedTreeSupportNode |
newInstance(IInstanceFactory instanceFactory,
Comparator comparator) |
static LinkedTreeSupportNode |
newInstance(IInstanceFactory instanceFactory,
Object element,
Comparator comparator) |
void |
setElement(Object element)
set element referenced by this node
|
void |
setNext(ILinkedListSupportNode<E> next)
set next node of this node
|
void |
setPrevious(ILinkedListSupportNode<E> previous)
set the previous node of this node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprotected LinkedTreeSupportNode(Comparator<? super E> comparator)
protected LinkedTreeSupportNode(Object element, Comparator<? super E> comparator)
public static LinkedTreeSupportNode newInstance(IInstanceFactory instanceFactory, Comparator comparator)
public static LinkedTreeSupportNode newInstance(IInstanceFactory instanceFactory, Object element, Comparator comparator)
public E getElement()
getElement in interface ILinkedListSupportNode<E>public void setElement(Object element)
ILinkedListSupportNodesetElement in interface ILinkedListSupportNode<E>element - the element referenced by this nodepublic ILinkedListSupportNode<E> getNext()
getNext in interface ILinkedListSupportNode<E>public ILinkedListSupportNode<E> getPrevious()
getPrevious in interface ILinkedListSupportNode<E>public void setNext(ILinkedListSupportNode<E> next)
ILinkedListSupportNodesetNext in interface ILinkedListSupportNode<E>next - the next node of this nodepublic void setPrevious(ILinkedListSupportNode<E> previous)
ILinkedListSupportNodesetPrevious in interface ILinkedListSupportNode<E>previous - the new previous node of this nodepublic int compareTo(LinkedTreeSupportNode<E> node)
compareTo in interface Comparable<LinkedTreeSupportNode<E>>Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.