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 T
getNext()
Returns a reference to the next element in the list.T
getPrev()
Returns a reference to the previous element in the list.void
setNext(T element)
Sets the reference to the next element in the list.void
setPrev(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.
-
-