Class DefaultLinkedListEntry<E>
- java.lang.Object
-
- net.automatalib.common.smartcollection.AbstractBasicLinkedListEntry<E,DefaultLinkedListEntry<E>>
-
- net.automatalib.common.smartcollection.DefaultLinkedListEntry<E>
-
- Type Parameters:
E
- element class.
- All Implemented Interfaces:
ElementReference
,LinkedListEntry<E,DefaultLinkedListEntry<E>>
public class DefaultLinkedListEntry<E> extends AbstractBasicLinkedListEntry<E,DefaultLinkedListEntry<E>>
The default linked list entry. It provides handling of successor and predecessor entries as well as storage of the actual element.
-
-
Constructor Summary
Constructors Constructor Description DefaultLinkedListEntry(E element)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getElement()
Retrieves the element stored at this position in the list.void
setElement(E element)
Sets the stored element to the specified element.-
Methods inherited from class net.automatalib.common.smartcollection.AbstractBasicLinkedListEntry
getNext, getPrev, setNext, setPrev
-
-
-
-
Constructor Detail
-
DefaultLinkedListEntry
public DefaultLinkedListEntry(E element)
Constructor.- Parameters:
element
- the element to be stored at this entry.
-
-
Method Detail
-
getElement
public E getElement()
Description copied from interface:LinkedListEntry
Retrieves the element stored at this position in the list.- Returns:
- the element.
-
setElement
public void setElement(E element)
Sets the stored element to the specified element.- Parameters:
element
- the new stored element.
-
-