Class ItemList<T>

    • Constructor Detail

      • ItemList

        public ItemList()
    • Method Detail

      • add

        public void add​(T item)
        Add a new item
        Parameters:
        item - The new item
      • remove

        public void remove​(T item)
        Remove an item.
        Parameters:
        item - The item to remove.
      • isEmpty

        public boolean isEmpty()
        Check if the list is empty.
        Returns:
        true if the list is empty.