private final boolean collision ( Map < Object , InvalidationEvent > hashtable , Enumeration enumeration , long timeStamp ) { while ( enumeration . hasMoreElements ( ) ) { Object key = enumeration . nextElement ( ) ; InvalidationEvent invalidationEvent = ( InvalidationEvent ) hashtable . get ( key ) ; if ( ( invalidationEvent != null ) && ( invalidationEvent . getTimeStamp ( ) > timeStamp ) ) { return true ; } } return false ; }
This is a helper method that checks for a collision .