public interface NodeStore<E>
HashMap<ListID, LongObjectHashMap<ElementType>>
The implementation should store the node in such way that you can access it through getNode(String, long)| Modifier and Type | Method and Description |
|---|---|
void |
clear()
this is meant to be a quick help to Garbage Collection.
|
LinkedListImpl.Node<E> |
getNode(String listID,
long id) |
void |
removeNode(E element,
LinkedListImpl.Node<E> node) |
int |
size()
ths should return the sum of all the sizes.
|
void |
storeNode(E element,
LinkedListImpl.Node<E> node)
When you store the node, make sure you find what is the ID and ListID for the element you are storing
as later one you will need to provide the node based on list and id as specified on
getNode(String, long) |
void storeNode(E element, LinkedListImpl.Node<E> node)
getNode(String, long)LinkedListImpl.Node<E> getNode(String listID, long id)
void removeNode(E element, LinkedListImpl.Node<E> node)
void clear()
int size()
Copyright © 2022 The Apache Software Foundation. All rights reserved.