Class ItemList<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>
    Direct Known Subclasses:
    ArtifactGroup

    public class ItemList<T>
    extends Commentable
    implements java.lang.Iterable<T>
    Helper class to hold a list of items.
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T item)
      Add a new item
      boolean isEmpty()
      Check if the list is empty.
      java.util.Iterator<T> iterator()  
      void remove​(T item)
      Remove an item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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.
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • isEmpty

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