Class BlockedList<T>

  • Type Parameters:
    T - Type of the list data

    public class BlockedList<T>
    extends Object
    Linked list that is securedby a semaphore
    Author:
    Darius Dinger
    • Constructor Detail

      • BlockedList

        public BlockedList()
    • Method Detail

      • add

        public void add​(T str)
        Parameters:
        str - Adding message to list
      • get

        public void get​(LinkedList<T> out)
        Getting message from list and storing into out
        Parameters:
        out - List to store messages
      • clear

        public void clear()
        Clearing list