org.eclipse.jetty.util.MultiMap.remove()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.eclipse.jetty.util.MultiMap.remove()方法的一些代码示例,展示了MultiMap.remove()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.remove()方法的具体详情如下:
包路径:org.eclipse.jetty.util.MultiMap
类名称:MultiMap
方法名:remove

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;
}

相关文章