public static class AllocationFreeList.Element<T extends AllocationFreeList.Element<T>> extends Object
TODO: If I wanted to be able to move an Element from one list to another, the "enlisted" field could point to the old list the element was on, and I could remove it from the old list, scrub the old list, reset "enlisted", and then prepend the element to the new list. Since the feature is not needed, it is not implemented.
Modifier | Constructor and Description |
---|---|
protected |
Element()
Constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getHasBeenOnList()
Has this element ever been on a list?
|
T |
getNextElement()
Get the next enabled element of the list.
|
Object |
getNextObject()
For detecting errors: Get the next element as an Object so there is no type checking.
|
void |
removeElement()
Logically remove this element from the list.
|
T |
testingBackDoorGetNextElement() |
boolean |
testingBackDoorIsEnabled() |
protected Element()
public T getNextElement()
public Object getNextObject()
public void removeElement()
public boolean getHasBeenOnList()
public boolean testingBackDoorIsEnabled()
public T testingBackDoorGetNextElement()