E
- @StoreNotUseStandardSerialization @StorableClass public abstract class AbstractLinkedListNodeSupport<E> extends Object implements ILinkedListSupportNode<E>, Serializable
Modifier | Constructor and Description |
---|---|
protected |
AbstractLinkedListNodeSupport() |
protected |
AbstractLinkedListNodeSupport(IEqualsHashComparator comparator) |
protected |
AbstractLinkedListNodeSupport(Object element) |
protected |
AbstractLinkedListNodeSupport(Object element,
IEqualsHashComparator comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
implementation of
Object.equals(Object) , node equality is
equivalent to element it contains equality |
E |
getElement() |
int |
hashCode()
implementation of
Object.hashCode() , node hasj code is the
hashcode of element it contains |
void |
setElement(Object element)
set element referenced by this node
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getNext, getPrevious, setNext, setPrevious
protected AbstractLinkedListNodeSupport(IEqualsHashComparator comparator)
protected AbstractLinkedListNodeSupport(Object element, IEqualsHashComparator comparator)
protected AbstractLinkedListNodeSupport(Object element)
protected AbstractLinkedListNodeSupport()
public E getElement()
getElement
in interface ILinkedListSupportNode<E>
public void setElement(Object element)
ILinkedListSupportNode
setElement
in interface ILinkedListSupportNode<E>
element
- the element referenced by this nodepublic boolean equals(Object obj)
ILinkedListSupportNode
Object.equals(Object)
, node equality is
equivalent to element it contains equalityequals
in interface ILinkedListSupportNode<E>
equals
in class Object
obj
- the reference object with which to compare element.true
if this node element is equals to the element
of the obj argument linked list node; false
otherwise.public int hashCode()
ILinkedListSupportNode
Object.hashCode()
, node hasj code is the
hashcode of element it containshashCode
in interface ILinkedListSupportNode<E>
hashCode
in class Object
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.