本文整理了Java中gnu.trove.map.TObjectIntMap.containsValue()
方法的一些代码示例,展示了TObjectIntMap.containsValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TObjectIntMap.containsValue()
方法的具体详情如下:
包路径:gnu.trove.map.TObjectIntMap
类名称:TObjectIntMap
方法名: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==no_entry_value ? v==no_entry_value : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface.
Note that no_entry_value is the result of #getNoEntryValue() and represents null for this map instance.
[中]如果此映射将一个或多个键映射到指定值,则返回true。更正式地说,当且仅当该映射包含至少一个到值v的映射,并且(value==no_entry_value?v==no_entry_value:value.equals(v))时,返回true。对于大多数映射接口的实现,此操作可能需要映射大小的时间线性。
请注意,no_entry_value是#getNoEntryValue()的结果,表示此映射实例的null。
代码示例来源:origin: alibaba/mdrill
public boolean containsValue( int value ){
synchronized( mutex ) { return m.containsValue( value ); }
}
public int get( Object key ) {
代码示例来源:origin: alibaba/mdrill
public boolean containsValue( int val ) { return m.containsValue( val ); }
public int get( Object key ) { return m.get( key ); }
代码示例来源:origin: alibaba/mdrill
/**
* Checks for the presence of <tt>val</tt> in the values of the map.
*
* @param val an <code>Object</code> value
* @return a <code>boolean</code> value
*/
public boolean containsValue( Object val ) {
return val instanceof Integer && _map.containsValue( unwrapValue( val ) );
}
代码示例来源:origin: com.palantir.patches.sourceforge/trove3
@Override
public boolean containsValue( int value ){
synchronized( mutex ) { return m.containsValue( value ); }
}
@Override
代码示例来源:origin: net.sf.trove4j/trove4j
public boolean containsValue( int value ){
synchronized( mutex ) { return m.containsValue( value ); }
}
public int get( Object key ) {
代码示例来源:origin: hernad/easyrec
public boolean containsValue( int value ){
synchronized( mutex ) { return m.containsValue( value ); }
}
public int get( Object key ) {
代码示例来源:origin: net.sf.trove4j/core
public boolean containsValue( int value ){
synchronized( mutex ) { return m.containsValue( value ); }
}
public int get( Object key ) {
代码示例来源:origin: net.sf.trove4j/core
public boolean containsValue( int val ) { return m.containsValue( val ); }
public int get( Object key ) { return m.get( key ); }
代码示例来源:origin: net.sf.trove4j/trove4j
public boolean containsValue( int val ) { return m.containsValue( val ); }
public int get( Object key ) { return m.get( key ); }
代码示例来源:origin: com.palantir.patches.sourceforge/trove3
@Override
public boolean containsValue( int val ) { return m.containsValue( val ); }
@Override
代码示例来源:origin: hernad/easyrec
public boolean containsValue( int val ) { return m.containsValue( val ); }
public int get( Object key ) { return m.get( key ); }
代码示例来源:origin: com.palantir.patches.sourceforge/trove3
/**
* Checks for the presence of <tt>val</tt> in the values of the map.
*
* @param val an <code>Object</code> value
* @return a <code>boolean</code> value
*/
@Override
public boolean containsValue( Object val ) {
return val instanceof Integer && _map.containsValue( unwrapValue( val ) );
}
代码示例来源:origin: net.sf.trove4j/trove4j
/**
* Checks for the presence of <tt>val</tt> in the values of the map.
*
* @param val an <code>Object</code> value
* @return a <code>boolean</code> value
*/
public boolean containsValue( Object val ) {
return val instanceof Integer && _map.containsValue( unwrapValue( val ) );
}
代码示例来源:origin: hernad/easyrec
/**
* Checks for the presence of <tt>val</tt> in the values of the map.
*
* @param val an <code>Object</code> value
* @return a <code>boolean</code> value
*/
public boolean containsValue( Object val ) {
return val instanceof Integer && _map.containsValue( unwrapValue( val ) );
}
代码示例来源:origin: net.sf.trove4j/core
/**
* Checks for the presence of <tt>val</tt> in the values of the map.
*
* @param val an <code>Object</code> value
* @return a <code>boolean</code> value
*/
public boolean containsValue( Object val ) {
return val instanceof Integer && _map.containsValue( unwrapValue( val ) );
}
内容来源于网络,如有侵权,请联系作者删除!