Vincent Hennebert wrote: > Hi, > > Manuel Mall a écrit : >> On Wednesday 18 July 2007 02:58, Andreas L Delmelle wrote: > <snip/> >> Interestingly Java 1.5 has added the Integer.valueOf(int) method with >> the following comment: > > Flyweight pattern. That's what I was looking for before replying to > Andreas' commit, and I was surprised to not find it in the 1.4 standard > library. A good thing it finally got added. >
Not a pattern. It's an object cache. -- Peter B. West <http://cv.pbw.id.au/> Folio <http://defoe.sourceforge.net/folio/>