public abstract class UtlListElement extends Object
This class represents elements of an UtlList
.
This class IS NOT intended to be used by end users.
Modifier and Type | Field and Description |
---|---|
int |
count
Number of elements in list (>=0 for head, -1 for others)
|
UtlListElement |
head
List that this element is part of.
|
UtlListElement |
next
Element that follows this element in the list
|
UtlListElement |
prev
Element that preceded this element in the list
|
Modifier and Type | Method and Description |
---|---|
int |
count()
Get num elements in list
|
void |
insertAfter(UtlListElement element)
Insert an element in the list after this element
|
void |
insertBefore(UtlListElement element)
Insert an element in the list before this element
|
boolean |
isLinked()
Get whether this element is linked into a list
|
UtlListElement |
next()
Get element in the list following this element
|
UtlListElement |
previous()
Get element in list preceding this element
|
void |
unlink()
Remove an element from a list
This method removes an element from a list.
|
void |
wipe()
Initialize
This method is for internal use and should never be called directly
|
public volatile UtlListElement head
public volatile UtlListElement next
public volatile UtlListElement prev
public volatile int count
public final void wipe()
This method is for internal use and should never be called directly
public final void insertBefore(UtlListElement element)
element
- The element to be insertedpublic final void insertAfter(UtlListElement element)
element
- The element to be insertedpublic final boolean isLinked()
public final void unlink()
This method removes an element from a list. Note that since a list head
UtlList
is a special kind of list element, this method can also
remove a head element from a list. That would be catastrophic.
public final UtlListElement next()
public final UtlListElement previous()
public final int count()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.