Most voted "flyweight" questions
Use this tag when the question refers to _design pattern_ (design pattern) _Flyweight_. The _Flyweight_ project pattern seeks to optimize memory usage by connecting several variables to the same instance.
Learn more…4 questions
Sort by count of
-
28
votes1
answer1626
viewsWhat is Flyweight Pattern?
Researching a little to better understand the logic that leads strings in Java to be immutable, I found out that "internment" of Strings is an example of the pattern Flyweight. In accordance with…
pattern-design software-engineering memory-management immutability flyweightasked 8 years ago Anthony Accioly 20,516 -
7
votes2
answers358
viewsReference in Flyweight design pattern
There’s something about Desing Pattern Flyweight that’s really getting me confused. Briefly, the pattern says that to save memory in a situation where you use several similar objects, you use a…
-
6
votes1
answer90
viewsUsing static factory methods instead of constructors
I’ve been doing some research on this subject after I read in Joshua Block’s book, Effective Java, Item 1, about the use of static factory methods rather than building builders. There in the text he…
-
3
votes0
answers36
viewsObject comparison in "Flyweight Pattern"
I was reading that question, and I was left in doubt as to how the comparison is made between the objects, thus determining which object would be equal to the other, and which would be a new object.…