public static Map < String , String > removeCalculatedProperties ( Map < String , String > contentProperties ) { if ( contentProperties != null ) { contentProperties = new HashMap <> ( contentProperties ) ; // Remove calculated properties contentProperties . remove ( StorageProvider . PROPERTIES_CONTENT_MD5 ) ; contentProperties . remove ( StorageProvider . PROPERTIES_CONTENT_CHECKSUM ) ; contentProperties . remove ( StorageProvider . PROPERTIES_CONTENT_MODIFIED ) ; contentProperties . remove ( StorageProvider . PROPERTIES_CONTENT_SIZE ) ; } return contentProperties ; }
Returns a new map with the calculated properties removed . If null null is returned .