java.util.LinkedHashMap.containsValue()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(169)

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

LinkedHashMap.containsValue介绍

[英]This override is done for LinkedHashMap performance: iteration is cheaper via LinkedHashMap nxt links.
[中]

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
public boolean containsValue(Object value) {
  return this.targetMap.containsValue(value);
}

代码示例来源:origin: org.springframework/spring-core

@Override
public boolean containsValue(Object value) {
  return this.targetMap.containsValue(value);
}

代码示例来源:origin: lipangit/JiaoZiVideoPlayer

public boolean containsTheUrl(Object object) {
    if (object != null) {
      return urlsMap.containsValue(object);
    }
    return false;
  }
}

代码示例来源:origin: org.apache.ant/ant

@Override
public synchronized boolean containsValue(Object value) {
  return map.containsValue(value);
}

代码示例来源:origin: twosigma/beakerx

@Override
public boolean containsValue(Object value) {
 return mapInstance.containsValue(value);
}

代码示例来源:origin: org.mongodb/mongo-java-driver

@Override
public boolean containsValue(final Object value) {
  return documentAsMap.containsValue(value);
}

代码示例来源:origin: nutzam/nutz

@Override
public boolean containsValue(Object value) {
  if (null == _map)
    return super.containsValue(value);
  return super.containsValue(value) || _map.containsValue(value);
}

代码示例来源:origin: looly/hutool

/**
 * 指定分组中是否包含指定值
 * 
 * @param group 分组
 * @param value 值
 * @return 是否包含值
 */
public boolean containsValue(String group, String value) {
  group = StrUtil.nullToEmpty(group).trim();
  final LinkedHashMap<String, String> valueMap = this.get(group);
  if (MapUtil.isNotEmpty(valueMap)) {
    return valueMap.containsValue(value);
  }
  return false;
}

代码示例来源:origin: looly/hutool

/**
 * 指定分组中是否包含指定值
 * 
 * @param group 分组
 * @param value 值
 * @return 是否包含值
 */
public boolean containsValue(String group, String value) {
  group = StrUtil.nullToEmpty(group).trim();
  final LinkedHashMap<String, String> valueMap = this.get(group);
  if (MapUtil.isNotEmpty(valueMap)) {
    return valueMap.containsValue(value);
  }
  return false;
}

代码示例来源:origin: yanzhenjie/AndServer

@Override
public boolean containsValue(Object value) {
  return this.mSource.containsValue(value);
}

代码示例来源:origin: stackoverflow.com

class LinkedHashSortedMapthing implements SortedSet {
  private class Foo extends LinkedHashMap {
    ...
  }

  private Foo foo;

  public void clear() {foo.clear();}
  public boolean containsValue(Object value) {return foo.containsValue(value);}
  ...
}

代码示例来源:origin: geotools/geotools

/** Returns {@code true} if this map contains the specified value. */
@Override
public boolean containsValue(final Object value) {
  synchronized (getLock()) {
    return super.containsValue(value);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public boolean containsValue(Attrs value) {
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute/bndlib

public boolean containsValue(String value) {
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute/bndlib

@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute/bndlib

@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute.bnd/bndlib

@SuppressWarnings("cast")
@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue((Attrs) value);
}

代码示例来源:origin: biz.aQute.bnd/bndlib

@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue(value);
}

代码示例来源:origin: biz.aQute/bndlib

@SuppressWarnings("cast")
@Deprecated
public boolean containsValue(Object value) {
  assert value instanceof Attrs;
  if (map == null)
    return false;
  return map.containsValue((Attrs) value);
}

相关文章