2014-08-16 19:40:39 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2014-08-31 10:16:48 +03:00
|
|
|
/**
|
2014-10-07 16:23:37 +01: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
|
|
|
*
|
|
|
|
*/
|
2014-10-07 16:23:37 +01:00
|
|
|
public class App {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
AlchemistShop alchemistShop = new AlchemistShop();
|
|
|
|
alchemistShop.enumerate();
|
2014-08-16 19:40:39 +03:00
|
|
|
}
|
|
|
|
}
|