/** * Associate view data with the specified key. If the key is null, the view * data will be ignored. * * @param key the key of the view data * @param viewData the view data to associate * @see #getViewData(Object) */ public void setViewData(Object key, V viewData) { if (key == null) { return; } if (viewData == null) { clearViewData(key); } else { viewDataMap.put(key, viewData); } } }
/** * Associate view data with the specified key. If the key is null, the view * data will be ignored. * * @param key the key of the view data * @param viewData the view data to associate * @see #getViewData(Object) */ public void setViewData(Object key, V viewData) { if (key == null) { return; } if (viewData == null) { clearViewData(key); } else { viewDataMap.put(key, viewData); } } }
/** * Associate view data with the specified key. If the key is null, the view * data will be ignored. * * @param key the key of the view data * @param viewData the view data to associate * @see #getViewData(Object) */ public void setViewData(Object key, V viewData) { if (key == null) { return; } if (viewData == null) { clearViewData(key); } else { viewDataMap.put(key, viewData); } } }