Package | Description |
---|---|
headfirst.combining.composite |
Modifier and Type | Class and Description |
---|---|
class |
DecoyDuck |
class |
DuckCall |
class |
Flock |
class |
GooseAdapter |
class |
MallardDuck |
class |
QuackCounter |
class |
RedheadDuck |
class |
RubberDuck |
Modifier and Type | Field and Description |
---|---|
(package private) Quackable |
QuackCounter.duck |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<Quackable> |
Flock.quackers |
Modifier and Type | Method and Description |
---|---|
abstract Quackable |
AbstractDuckFactory.createDuckCall() |
Quackable |
CountingDuckFactory.createDuckCall() |
Quackable |
DuckFactory.createDuckCall() |
abstract Quackable |
AbstractDuckFactory.createMallardDuck() |
Quackable |
CountingDuckFactory.createMallardDuck() |
Quackable |
DuckFactory.createMallardDuck() |
abstract Quackable |
AbstractDuckFactory.createRedheadDuck() |
Quackable |
CountingDuckFactory.createRedheadDuck() |
Quackable |
DuckFactory.createRedheadDuck() |
abstract Quackable |
AbstractDuckFactory.createRubberDuck() |
Quackable |
CountingDuckFactory.createRubberDuck() |
Quackable |
DuckFactory.createRubberDuck() |
Modifier and Type | Method and Description |
---|---|
void |
Flock.add(Quackable quacker) |
(package private) void |
DuckSimulator.simulate(Quackable duck) |
Constructor and Description |
---|
QuackCounter(Quackable duck) |