MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

flyweight/src/main/java/com/iluwatar/flyweight/App.java:17–23  ·  view source on GitHub ↗

Flyweight pattern is useful when the program needs a huge amount of objects. It provides means to decrease resource usage by sharing object instances. In this example AlchemistShop has great amount of potions on its shelves. To fill the shelves AlchemistShop uses PotionFactory (which represents the

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected