Package herddb.utils

Class ListWithMap<E>

  • Type Parameters:
    E -

    public class ListWithMap<E>
    extends Object
    Combined strucutre linked list / hash map.

    If necessary elements can be removed in O1 with remove(Object)

    Author:
    diego.salvi
    • Constructor Detail

      • ListWithMap

        public ListWithMap()
    • Method Detail

      • append

        public void append​(E e)
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • peek

        public E peek()
      • poll

        public E poll()
      • contains

        public boolean contains​(E e)
      • remove

        public E remove​(E e)
      • clear

        public void clear()
      • toList

        public List<E> toList()