What is this pattern called?

  • Thread starter Thread starter phillipwei
  • Start date Start date
P

phillipwei

You have a class that's returning an immutable set of objects that are
the "same" objects. If you were for some reason representing the
alphabet as full-fledged objects, and each time you requested "A" it
would return the exact same object "A".

Or is this so basic it's not really a "pattern"?
 
Hi,
| You have a class that's returning an immutable set of objects that are
| the "same" objects. If you were for some reason representing the
| alphabet as full-fledged objects, and each time you requested "A" it
| would return the exact same object "A".
|
| Or is this so basic it's not really a "pattern"?
|

http://www.dofactory.com/Patterns/PatternFlyweight.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top