public class BirdCollection
extends java.lang.Object
| Constructor and Description |
|---|
BirdCollection(IContainer root)
Instantiates a new bird collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBird(Bird b)
Adds the bird.
|
Bird |
birdAtIndex(int i)
Bird at index.
|
int |
eatableBirdCount()
Eatable bird count.
|
void |
removeBird(Bird b)
Removes the bird.
|
int |
size()
Size.
|
void |
update()
Update.
|
public BirdCollection(IContainer root)
root - the rootpublic void addBird(Bird b)
b - the bpublic Bird birdAtIndex(int i)
i - the ipublic int eatableBirdCount()
public void removeBird(Bird b)
b - the bpublic int size()
public void update()