WeakValueDictionary.st
changeset 23692 5ce99595b37d
parent 20169 79a892cdfff9
child 23722 f3a464afa0b7
equal deleted inserted replaced
23691:1fa11cfb492e 23692:5ce99595b37d
   322     ^ a
   322     ^ a
   323 
   323 
   324     "Created: 6.5.1996 / 14:47:37 / stefan"
   324     "Created: 6.5.1996 / 14:47:37 / stefan"
   325 ! !
   325 ! !
   326 
   326 
   327 !WeakValueDictionary methodsFor:'testing'!
   327 !WeakValueDictionary methodsFor:'queries'!
   328 
   328 
   329 includes:anObject
   329 includes:anObject
   330     "redefined to block interrupts
   330     "redefined to block interrupts
   331      (avoid change of the dictionary while accessing)"
   331      (avoid change of the dictionary while accessing)"
   332 
   332 
   370     ^ (self at:key ifAbsent:DeletedEntry) ~~ DeletedEntry.
   370     ^ (self at:key ifAbsent:DeletedEntry) ~~ DeletedEntry.
   371 
   371 
   372     "Modified: 6.5.1996 / 12:22:26 / stefan"
   372     "Modified: 6.5.1996 / 12:22:26 / stefan"
   373     "Modified: 1.7.1997 / 10:45:52 / cg"
   373     "Modified: 1.7.1997 / 10:45:52 / cg"
   374     "Created: 1.7.1997 / 15:41:32 / cg"
   374     "Created: 1.7.1997 / 15:41:32 / cg"
   375 !
   375 ! !
       
   376 
       
   377 !WeakValueDictionary methodsFor:'testing'!
   376 
   378 
   377 isWeakCollection
   379 isWeakCollection
   378     "return true, if the receiver has weak references to its elements."
   380     "return true, if the receiver has weak references to its elements."
   379 
   381 
   380     ^ true
   382     ^ true