Class FlyweightFactory
- public class FlyweightFactory
- extends Object
A factory that creates BallFlyweights with specific radii, colors, containers, and strategies. If a flyweight with the given specifications already exists, the same flyweight is reused, otherwise a new instance is created.

hash
hashFlyweight
tempFlyweight

getFlyweight
(int, Color, Container, AStrategy)

hash
Hashtable hash
tempFlyweight
private BallFlyweight tempFlyweight
hashFlyweight
private BallFlyweight hashFlyweight

getFlyweight
public BallFlyweight getFlyweight(int r, Color col, Container c, AStrategy a)