Flyweight pattern how to use this FactoryFlyweight

The example didn't use the TreeFactory even though it was created so I want to use it . https://refactoring.guru/design-patterns/flyweight/java/example
Flyweight in Java / Design Patterns
Flyweight pattern in Java. Full code example in Java with detailed comments and explanation. Flyweight is a structural design pattern that allows programs to support vast quantities of objects by keeping their memory consumption low.
5 Replies
JavaBot
JavaBot12mo ago
This post has been reserved for your question.
Hey @Rag...JN 🌌 🦡 👽 💰! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Rag...JN 🌌 🦡 👽 💰 🐊
So instead of the creating a new Tree Type I used the static method
Rag...JN 🌌 🦡 👽 💰 🐊
ok nevermind
JavaBot
JavaBot12mo ago
Post Closed
This post has been closed by <@910524060771971103>.
Want results from more Discord servers?
Add your server