Class IndexLinkedList<K,T>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Deque<T>, List<T>, Queue<T>

public class IndexLinkedList<K,T> extends LinkedList<T>
An extended LinkedList which supports finding element by an indexed key.
Author:
simonpai
See Also:
  • Constructor Details

    • IndexLinkedList

      public IndexLinkedList()
  • Method Details

    • query

      public T query(K key)
      Retrieve element by key.
    • add

      public void add(K key, T element)
      Add the element and register it in the map.