Files
java-design-patterns/flyweight/src/main/java/com/iluwatar/App.java

17 lines
383 B
Java
Raw Normal View History

2014-08-16 19:40:39 +03:00
package com.iluwatar;
2014-08-31 10:16:48 +03:00
/**
*
* Flyweight (PotionFactory) is useful when there is plethora of objects
* (Potion). It provides means to decrease resource usage by sharing object
* instances.
2014-08-31 10:16:48 +03:00
*
*/
public class App {
public static void main(String[] args) {
AlchemistShop alchemistShop = new AlchemistShop();
alchemistShop.enumerate();
2014-08-16 19:40:39 +03:00
}
}