Class CopyOnReadLinkedList<T>

  • Type Parameters:
    T -

    public class CopyOnReadLinkedList<T>
    extends java.lang.Object
    this class can just guarantee some behavior in a concurrent thread safety mode:
    • Constructor Detail

      • CopyOnReadLinkedList

        public CopyOnReadLinkedList()
    • Method Detail

      • add

        public void add​(T d)
      • contains

        public boolean contains​(T d)
      • remove

        public void remove​(T d)
      • iterator

        public java.util.Iterator<T> iterator()
      • reset

        public void reset()
      • cloneList

        public java.util.List<T> cloneList()
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()