本文整理了Java中org.eclipse.jetty.util.MultiMap.remove()
方法的一些代码示例,展示了MultiMap.remove()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.remove()
方法的具体详情如下:
包路径:org.eclipse.jetty.util.MultiMap
类名称:MultiMap
方法名:remove
[英]Remove value.
[中]删除值。
代码示例来源:origin: org.eclipse.jetty/jetty-util
/** Remove value.
* @param name The entry key.
* @param value The entry value.
* @return true if it was removed.
*/
public boolean removeValue(String name,V value)
{
List<V> lo = get(name);
if((lo == null)||(lo.isEmpty())) {
return false;
}
boolean ret = lo.remove(value);
if(lo.isEmpty()) {
remove(name);
} else {
put(name,lo);
}
return ret;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/** Remove value.
* @param name The entry key.
* @param value The entry value.
* @return true if it was removed.
*/
public boolean removeValue(String name,V value)
{
List<V> lo = get(name);
if((lo == null)||(lo.isEmpty())) {
return false;
}
boolean ret = lo.remove(value);
if(lo.isEmpty()) {
remove(name);
} else {
put(name,lo);
}
return ret;
}
代码示例来源:origin: Nextdoor/bender
/** Remove value.
* @param name The entry key.
* @param value The entry value.
* @return true if it was removed.
*/
public boolean removeValue(String name,V value)
{
List<V> lo = get(name);
if((lo == null)||(lo.isEmpty())) {
return false;
}
boolean ret = lo.remove(value);
if(lo.isEmpty()) {
remove(name);
} else {
put(name,lo);
}
return ret;
}
代码示例来源:origin: jenkinsci/winstone
/** Remove value.
* @param name The entry key.
* @param value The entry value.
* @return true if it was removed.
*/
public boolean removeValue(String name,V value)
{
List<V> lo = get(name);
if((lo == null)||(lo.isEmpty())) {
return false;
}
boolean ret = lo.remove(value);
if(lo.isEmpty()) {
remove(name);
} else {
put(name,lo);
}
return ret;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/** Remove value.
* @param name The entry key.
* @param value The entry value.
* @return true if it was removed.
*/
public boolean removeValue(String name,V value)
{
List<V> lo = get(name);
if((lo == null)||(lo.isEmpty())) {
return false;
}
boolean ret = lo.remove(value);
if(lo.isEmpty()) {
remove(name);
} else {
put(name,lo);
}
return ret;
}
内容来源于网络,如有侵权,请联系作者删除!