public void initializeCache ( Object key ) throws Exception { this . sortedWindows = cachedSortedWindows . get ( key ) ; if ( sortedWindows == null ) { this . sortedWindows = new TreeSet <> ( ) ; Iterator < Map . Entry < W , W > > keyValues = mapping . iterator ( ) ; if ( keyValues != null ) { while ( keyValues . hasNext ( ) ) { Map . Entry < W , W > keyValue = keyValues . next ( ) ; this . sortedWindows . add ( keyValue . getKey ( ) ) ; } } cachedSortedWindows . put ( key , sortedWindows ) ; } }
Set current key context of this window set .