Package fr.gouv.vitam.common.graph
Class NodeIterable<Item>
java.lang.Object
fr.gouv.vitam.common.graph.NodeIterable<Item>
- Type Parameters:
Item
-
- All Implemented Interfaces:
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
Adds the item to this bag.- Parameters:
item
- the item to add to this bag
-
iterator
Returns an iterator that iterates over the items in this bag in arbitrary order.
-