本文整理了Java中org.eclipse.collections.api.map.MutableMap.get()
方法的一些代码示例,展示了MutableMap.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MutableMap.get()
方法的具体详情如下:
包路径:org.eclipse.collections.api.map.MutableMap
类名称:MutableMap
方法名:get
暂无
代码示例来源:origin: OryxProject/oryx
private MutableSet<String> doGetKnownItems(String user) {
try (AutoLock al = knownItemsLock.autoReadLock()) {
return knownItems.get(user);
}
}
代码示例来源:origin: eclipse/eclipse-collections
BigDecimal oldValue = map.get(key);
BigDecimal valueToAdd = function.valueOf(each);
map.put(key, oldValue == null ? valueToAdd : oldValue.add(valueToAdd));
BigDecimal oldValue = map1.get(key);
map1.put(key, oldValue == null ? value : oldValue.add(value));
});
代码示例来源:origin: eclipse/eclipse-collections
BigInteger oldValue = map.get(key);
BigInteger valueToAdd = function.valueOf(each);
map.put(key, oldValue == null ? valueToAdd : oldValue.add(valueToAdd));
BigInteger oldValue = map1.get(key);
map1.put(key, oldValue == null ? value : oldValue.add(value));
});
代码示例来源:origin: eclipse/eclipse-collections
BigDecimal oldValue = map.get(key);
BigDecimal valueToAdd = function.valueOf(each);
map.put(key, oldValue == null ? valueToAdd : oldValue.add(valueToAdd));
BigDecimal oldValue = map1.get(key);
map1.put(key, oldValue == null ? value : oldValue.add(value));
});
代码示例来源:origin: eclipse/eclipse-collections
BigInteger oldValue = map.get(key);
BigInteger valueToAdd = function.valueOf(each);
map.put(key, oldValue == null ? valueToAdd : oldValue.add(valueToAdd));
BigInteger oldValue = map1.get(key);
map1.put(key, oldValue == null ? value : oldValue.add(value));
});
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean remove(Object key, Object value)
{
C collection = this.map.get(key);
if (collection == null)
{
return false;
}
boolean changed = collection.remove(value);
if (changed)
{
this.decrementTotalSize();
if (collection.isEmpty())
{
this.map.remove(key);
}
}
return changed;
}
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean remove(Object key, Object value)
{
C collection = this.map.get(key);
if (collection == null)
{
return false;
}
boolean changed = collection.remove(value);
if (changed)
{
this.decrementTotalSize();
if (collection.isEmpty())
{
this.map.remove(key);
}
}
return changed;
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-db
@Override
public Iterable<CompareBreak> valueOf(PhysicalSchema schema) {
ImmutableCollection<DaTable> regularTables = regularTableMap.get(schema);
ImmutableCollection<DaTable> baselineTables = baselineTableMap.get(schema);
return BaselineValidatorMain.this.dbMetadataComparisonUtil.compareTables(regularTables, baselineTables);
}
});
代码示例来源:origin: goldmansachs/obevo
@Override
public Iterable<CompareBreak> valueOf(PhysicalSchema schema) {
ImmutableCollection<DaTable> regularTables = regularTableMap.get(schema);
ImmutableCollection<DaTable> baselineTables = baselineTableMap.get(schema);
return BaselineValidatorMain.this.dbMetadataComparisonUtil.compareTables(regularTables, baselineTables);
}
});
代码示例来源:origin: com.goldmansachs.tablasco/tablasco-junit
private ToleranceVarianceValues toleranceVarianceValue(String columnName) {
return this.toleranceVarianceValues.get(columnName) == null
? new ToleranceVarianceValues() : this.toleranceVarianceValues.get(columnName);
}
代码示例来源:origin: goldmansachs/obevo
@Override
public T retrieve(String schema, String dependency) {
return objectMap.get(convertDbObjectName.valueOf(dependency));
}
}
代码示例来源:origin: goldmansachs/obevo
@Override
public T retrieve(String schema, String dependency) {
return objectMap.get(convertDbObjectName.valueOf(dependency));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-core
@Override
public T retrieve(String schema, String dependency) {
return objectMap.get(convertDbObjectName.valueOf(dependency));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-core
@Override
public T retrieve(String schema, String dependency) {
return objectMap.get(convertDbObjectName.valueOf(dependency));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-core
@Override
public T retrieve(String schema, String dependency) {
return (T) schemaToObjectMap.get(Tuples.pair(schema, convertDbObjectName.valueOf(dependency)));
}
}
代码示例来源:origin: goldmansachs/obevo
@Override
public T retrieve(String schema, String dependency) {
return (T) schemaToObjectMap.get(Tuples.pair(schema, convertDbObjectName.valueOf(dependency)));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-core
@Override
public T retrieve(String schema, String dependency) {
return (T) schemaToObjectMap.get(Tuples.pair(schema, convertDbObjectName.valueOf(dependency)));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-core
protected <T> T singleton(String beanName, Function0<T> func) {
Object bean = this.singletonBeans.get(beanName);
if (bean == null) {
bean = func.value();
this.singletonBeans.put(beanName, bean);
}
return (T) bean;
}
代码示例来源:origin: jenkinsci/warnings-ng-plugin
private void updateMap(final List<ResultAction> actions) {
for (ResultAction action : actions) {
List<AnnotatedReport> runs = results.get(action.getId());
runs.add(createReport(action.getId(), action.getResult()));
}
}
代码示例来源:origin: com.goldmansachs.obevo/obevo-db-unittest-util
public DbDeployerAppContext buildContext() {
validateBuilder();
String instanceLookupKey = instanceLookupKey();
DbDeployerAppContext baseContext = cachedContexts.get(instanceLookupKey);
if (baseContext == null) {
baseContext = buildContextUncached();
cachedContexts.put(instanceLookupKey, baseContext);
}
// set the arguments that should be used as defined in this builder class, e.g. for limiting by specific tables
return new UnitTestDbDeployerAppContext(baseContext, getMainDeployerArgs());
}
内容来源于网络,如有侵权,请联系作者删除!