James Strachan wrote: 
> 
> ----- Original Message -----
> From: "Morgan Delagrange" <[EMAIL PROTECTED]>
> > Hi all,
> >
> > This is strange.  What is the proper behaviour of the
> > LRUMap.setMaximumSize(int) method, do you think?  One would 
> assume that,
> if
> > the current LRUMap has more keys than the new maximum size, 
> the LRUMap
> would
> > trim excess keys according to the LRU algorithm.  But right 
> now, all it
> > appears to do is maintain the current size.  The Javadocs 
> do not indicate
> > one way or the other.
> 
> I guess since its vague right now this could go either way :)
> 
> My gut feel is with the former, that the map shrinks if the 
> new max size is
> smaller than the currrent size.

+1 -- I agree with this perception.  

michael


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to