Class AbstractBasicLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>
- java.lang.Object
-
- net.automatalib.common.smartcollection.AbstractBasicLinkedListEntry<E,T>
-
- Type Parameters:
E- element class.T- linked list entry class.
- All Implemented Interfaces:
ElementReference,LinkedListEntry<E,T>
- Direct Known Subclasses:
DefaultLinkedListEntry
public abstract class AbstractBasicLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>> extends Object implements LinkedListEntry<E,T>
Abstract base class for entries in a linked list. Takes care for handling predecessor and successor, but not storage of the element itself.
-
-
Constructor Summary
Constructors Constructor Description AbstractBasicLinkedListEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable TgetNext()Retrieves the next entry in the list, ornullif this is the last entry.@Nullable TgetPrev()Retrieves the previous entry in the list, ornullif this is the first entry.voidsetNext(@Nullable T next)Sets the successor of this entry.voidsetPrev(@Nullable T prev)Sets the predecessor of this entry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.automatalib.common.smartcollection.LinkedListEntry
getElement
-
-
-
-
Method Detail
-
getPrev
public @Nullable T getPrev()
Description copied from interface:LinkedListEntryRetrieves the previous entry in the list, ornullif this is the first entry.- Specified by:
getPrevin interfaceLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>- Returns:
- the previous entry or
null.
-
setPrev
public void setPrev(@Nullable T prev)
Description copied from interface:LinkedListEntrySets the predecessor of this entry.- Specified by:
setPrevin interfaceLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>- Parameters:
prev- the new predecessor.
-
getNext
public @Nullable T getNext()
Description copied from interface:LinkedListEntryRetrieves the next entry in the list, ornullif this is the last entry.- Specified by:
getNextin interfaceLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>- Returns:
- the next entry or
null.
-
setNext
public void setNext(@Nullable T next)
Description copied from interface:LinkedListEntrySets the successor of this entry.- Specified by:
setNextin interfaceLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>- Parameters:
next- the new successor.
-
-