Class ItemCollection<TItem extends Item>

    • Constructor Detail

      • ItemCollection

        public ItemCollection()
        Initializes a new instance of the "ItemCollection<TItem>" class.
    • Method Detail

      • getCount

        public int getCount()
        Gets the total number of item in the collection.
        Returns:
        the count
      • getItem

        public TItem getItem​(int index)
        Gets the item at the specified index.
        Parameters:
        index - The zero-based index of the item to get.
        Returns:
        The item at the specified index.
      • getIterator

        public Iterator<TItemgetIterator()
        Gets an iterator that iterates through the elements of the collection.
        Returns:
        An Iterator for the collection.