org.eclipse.collections.api.map.MutableMap.get()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(209)

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

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());
}

相关文章

MutableMap类方法