Constructor and Description |
---|
NodeIterable()
Initializes an empty bag.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Item item)
Adds the item to this bag.
|
boolean |
isEmpty()
Returns true if this bag is empty.
|
Iterator<Item> |
iterator()
Returns an iterator that iterates over the items in this bag in arbitrary order.
|
int |
size()
Returns the number of items in this bag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean isEmpty()
public int size()
public void add(Item item)
item
- the item to add to this bagCopyright © 2018 Vitam. All rights reserved.