Class NodeIterable<Item>

java.lang.Object
fr.gouv.vitam.common.graph.NodeIterable<Item>
Type Parameters:
Item -
All Implemented Interfaces:
Iterable<Item>

public class NodeIterable<Item> extends Object implements Iterable<Item>
NodeIterable class
  • Constructor Details

    • NodeIterable

      public NodeIterable()
      Initializes an empty bag.
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true if this bag is empty.
      Returns:
      true if this bag is empty; false otherwise
    • size

      public int size()
      Returns the number of items in this bag.
      Returns:
      the number of items in this bag
    • add

      public void add(Item item)
      Adds the item to this bag.
      Parameters:
      item - the item to add to this bag
    • iterator

      public Iterator<Item> iterator()
      Returns an iterator that iterates over the items in this bag in arbitrary order.
      Specified by:
      iterator in interface Iterable<Item>
      Returns:
      an iterator that iterates over the items in this bag in arbitrary order