类的使用
cn.taketoday.ui.ModelMap
使用ModelMap的程序包
-
cn.taketoday.ui中ModelMap的使用
返回ModelMap的cn.taketoday.ui中的方法修饰符和类型方法说明ModelMap.addAllAttributes(Collection<?> attributeValues) Copy all attributes in the suppliedCollectioninto thisMap, using attribute name generation for each element.ModelMap.addAllAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto thisMap.ModelMap.addAttribute(Object attributeValue) Add the supplied attribute to thisMapusing agenerated name.ModelMap.addAttribute(String attributeName, Object attributeValue) Add the supplied attribute under the supplied name.ModelMap.mergeAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto thisMap, with existing objects of the same name taking precedence (i.e. not getting replaced).