本文整理了Java中gnu.trove.map.TObjectIntMap.putIfAbsent()
方法的一些代码示例,展示了TObjectIntMap.putIfAbsent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TObjectIntMap.putIfAbsent()
方法的具体详情如下:
包路径:gnu.trove.map.TObjectIntMap
类名称:TObjectIntMap
方法名:putIfAbsent
[英]Inserts a key/value pair into the map if the specified key is not already associated with a value.
[中]如果指定的键尚未与值关联,则在映射中插入键/值对。
代码示例来源:origin: alibaba/mdrill
public int putIfAbsent( K key, int value ) {
synchronized( mutex ) { return m.putIfAbsent( key, value ); }
}
public boolean forEachKey( TObjectProcedure<? super K> procedure ) {
代码示例来源:origin: net.sf.trove4j/trove4j
public int putIfAbsent( K key, int value ) {
synchronized( mutex ) { return m.putIfAbsent( key, value ); }
}
public boolean forEachKey( TObjectProcedure<? super K> procedure ) {
代码示例来源:origin: com.palantir.patches.sourceforge/trove3
@Override
public int putIfAbsent( K key, int value ) {
synchronized( mutex ) { return m.putIfAbsent( key, value ); }
}
@Override
代码示例来源:origin: net.sf.trove4j/core
public int putIfAbsent( K key, int value ) {
synchronized( mutex ) { return m.putIfAbsent( key, value ); }
}
public boolean forEachKey( TObjectProcedure<? super K> procedure ) {
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public int getMapping(OWLIndividual individual) {
return mapping.putIfAbsent(individual, value++);
}
代码示例来源:origin: hernad/easyrec
public int putIfAbsent( K key, int value ) {
synchronized( mutex ) { return m.putIfAbsent( key, value ); }
}
public boolean forEachKey( TObjectProcedure<K> procedure ) {
内容来源于网络,如有侵权,请联系作者删除!