public static Map < CacheMode , Long > cacheModeMapFor ( long value ) { if ( value == 0 ) { return CACHE_MODE_ALL_ZEROS ; } Map < CacheMode , Long > m = new HashMap <> ( ) ; for ( CacheMode cm : CacheMode . values ( ) ) { m . put ( cm , value ) ; } return m ; }
Get a map of CacheMode with all keys associated with the specified value