public Image getImage ( GraphicsConfiguration config , int w , int h , Object ... args ) { lock . readLock ( ) . lock ( ) ; try { PixelCountSoftReference ref = map . get ( hash ( config , w , h , args ) ) ; // check reference has not been lost and the key truly matches, in // case of false positive hash match if ( ref != null && ref . equals ( config , w , h , args ) ) { return ref . get ( ) ; } else { return null ; } } finally { lock . readLock ( ) . unlock ( ) ; } }
Get the cached image for given keys