Interface ConcurrentIntrusiveList.Element<T extends ConcurrentIntrusiveList.Element<T>>
-
- Type Parameters:
T- the element that will be used for the list.
- All Known Implementing Classes:
RecordEventsSpanImpl
- Enclosing class:
- ConcurrentIntrusiveList<T extends ConcurrentIntrusiveList.Element<T>>
public static interface ConcurrentIntrusiveList.Element<T extends ConcurrentIntrusiveList.Element<T>>This is an interface that must be implemented by any element that usesConcurrentIntrusiveList.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetNext()Returns a reference to the next element in the list.TgetPrev()Returns a reference to the previous element in the list.voidsetNext(T element)Sets the reference to the next element in the list.voidsetPrev(T element)Sets the reference to the previous element in the list.
-
-
-
Method Detail
-
getNext
@Nullable T getNext()
Returns a reference to the next element in the list.- Returns:
- a reference to the next element in the list.
-
setNext
void setNext(@Nullable T element)Sets the reference to the next element in the list.- Parameters:
element- the reference to the next element in the list.
-
getPrev
@Nullable T getPrev()
Returns a reference to the previous element in the list.- Returns:
- a reference to the previous element in the list.
-
setPrev
void setPrev(@Nullable T element)Sets the reference to the previous element in the list.- Parameters:
element- the reference to the previous element in the list.
-
-