本文整理了Java中java.util.TreeMap.containsValue()
方法的一些代码示例,展示了TreeMap.containsValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TreeMap.containsValue()
方法的具体详情如下:
包路径:java.util.TreeMap
类名称:TreeMap
方法名:containsValue
[英]Returns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations.
[中]
代码示例来源:origin: commons-collections/commons-collections
/**
* Return <code>true</code> if this map contains one or more keys mapping
* to the specified value.
*
* @param value the value to be searched for
* @return true if the map contains the value
*/
public boolean containsValue(Object value) {
if (fast) {
return (map.containsValue(value));
} else {
synchronized (map) {
return (map.containsValue(value));
}
}
}
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: goldmansachs/gs-collections
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: wildfly/wildfly
/**
* Return <code>true</code> if this map contains one or more keys mapping
* to the specified value.
*
* @param value the value to be searched for
* @return true if the map contains the value
*/
public boolean containsValue(Object value) {
if (fast) {
return (map.containsValue(value));
} else {
synchronized (map) {
return (map.containsValue(value));
}
}
}
代码示例来源:origin: org.apache.poi/poi-ooxml
boolean defaultCTExists = this.defaultContentType.containsValue(contentType);
String extension = partName.getExtension().toLowerCase(Locale.ROOT);
if ((extension.length() == 0)
代码示例来源:origin: jboss/jbossretro
public boolean containsValue(Object value)
{
return values.containsValue(value);
}
代码示例来源:origin: org.apache.felix/org.apache.felix.connect
@Override
public boolean containsValue(Object arg0)
{
return m_map.containsValue(arg0);
}
代码示例来源:origin: org.eclipse.collections/eclipse-collections
@Override
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.descriptor
/**
* {@inheritDoc}
*/
@Override
public boolean containsValue(Object value) {
return properties.containsValue(value);
}
代码示例来源:origin: kawasima/enkan
/**
*
* @param value {@inheritDoc}
* @return {@inheritDoc}
*/
@Override
public boolean containsValue(Object value) {
return params.containsValue(value);
}
代码示例来源:origin: apache/felix
@Override
public boolean containsValue(Object arg0)
{
return m_map.containsValue(arg0);
}
代码示例来源:origin: org.apache.reef/tang
@Override
public boolean containsValue(final Object o) {
return innerMap.containsValue(o);
}
代码示例来源:origin: quickfix-j/quickfixj
public boolean containsValue(Object value) {
return cacheIndex.containsValue(value);
}
代码示例来源:origin: com.goldmansachs/gs-collections
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: com.yahoo.vespa/jdisc_core
@Override
public boolean containsValue(Object value) {
return content.containsValue(value);
}
代码示例来源:origin: com.webguys.ponzu/impl
public boolean containsValue(Object value)
{
return this.treeMap.containsValue(value);
}
代码示例来源:origin: elki-project/elki
/**
* Test whether a segment is selected.
*
* @param segment Segment to test
* @return true when selected
*/
public boolean isSelected(Segment segment) {
return selectedSegments.contains(segment) || indirectSelections.containsValue(segment);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization
/**
* Test whether a segment is selected.
*
* @param segment Segment to test
* @return true when selected
*/
public boolean isSelected(Segment segment) {
return selectedSegments.contains(segment) || indirectSelections.containsValue(segment);
}
代码示例来源:origin: edu.uiuc.ncsa.security/ncsa-security-core
public boolean containsValue(Object value) {
return getTheRealCache().containsValue(value);
}
内容来源于网络,如有侵权,请联系作者删除!