com.github.datalking.web.mvc.ExtendedModelMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-mvc Show documentation
Show all versions of play-mvc Show documentation
simple mvc framework based on java servlet.
The newest version!
package com.github.datalking.web.mvc;
import java.util.Collection;
import java.util.Map;
/**
* @author yaoo on 4/29/18
*/
public class ExtendedModelMap extends ModelMap implements Model {
@Override
public ExtendedModelMap addAttribute(String attributeName, Object attributeValue) {
super.addAttribute(attributeName, attributeValue);
return this;
}
@Override
public ExtendedModelMap addAttribute(Object attributeValue) {
super.addAttribute(attributeValue);
return this;
}
@Override
public ExtendedModelMap addAllAttributes(Collection> attributeValues) {
super.addAllAttributes(attributeValues);
return this;
}
@Override
public ExtendedModelMap addAllAttributes(Map attributes) {
super.addAllAttributes(attributes);
return this;
}
@Override
public ExtendedModelMap mergeAttributes(Map attributes) {
super.mergeAttributes(attributes);
return this;
}
// 返回自身的Map
@Override
public Map asMap() {
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy