org.apache.commons.collections.MultiMap.entrySet()方法的使用及代码示例

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

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

MultiMap.entrySet介绍

暂无

代码示例

代码示例来源:origin: openmrs/openmrs-core

private List<String> filterKeysWithMultipleValues(MultiMap keyValuesMap) {
  List<String> result = new ArrayList<>();
  for (Object entryObject : keyValuesMap.entrySet()) {
    // apache commons multimap in version 3.* do not use generics (
    // version 4.0 has)
    @SuppressWarnings("unchecked")
    Map.Entry<String, Collection<?>> mapEntry = (Entry<String, Collection<?>>) entryObject;
    if (mapEntry.getValue().size() > 1) {
      result.add(mapEntry.getKey());
    }
  }
  return result;
}

代码示例来源:origin: org.jsmiparser/jsmiparser-util

public Set<Map.Entry<K, List<V>>> entrySet() {
    return m_impl.entrySet();
  }
}

代码示例来源:origin: info.magnolia/magnolia-module-cache

private void writeObject(ObjectOutputStream out) throws IOException {
  serializableHeadersBackingList = new HashMap();
  Iterator iter = headers.entrySet().iterator();
  while (iter.hasNext()) {
    Map.Entry entry = (Entry) iter.next();
    serializableHeadersBackingList.put(entry.getKey(), new ArrayList((Collection)entry.getValue()));
  }
  out.defaultWriteObject();
}

代码示例来源:origin: net.jadler/jadler-core

@Override
public String toString() {
  final StringBuilder sb = new StringBuilder();
  for (@SuppressWarnings("unchecked")final Iterator<Map.Entry<String, Collection<String>>> it
      = this.values.entrySet().iterator(); it.hasNext();) {
    final Map.Entry<String, Collection<String>> e = it.next();
    
    for (final Iterator<String> it2 = e.getValue().iterator(); it2.hasNext();) {
      sb.append(e.getKey()).append(": ").append(it2.next());
      if (it2.hasNext()) {
        sb.append(", ");
      }
    }
    
    if (it.hasNext()) {
      sb.append(", ");
    }
  }
  
  return sb.toString();
}

代码示例来源:origin: jadler-mocking/jadler

@Override
public String toString() {
  final StringBuilder sb = new StringBuilder();
  for (@SuppressWarnings("unchecked")final Iterator<Map.Entry<String, Collection<String>>> it
      = this.values.entrySet().iterator(); it.hasNext();) {
    final Map.Entry<String, Collection<String>> e = it.next();
    
    for (final Iterator<String> it2 = e.getValue().iterator(); it2.hasNext();) {
      sb.append(e.getKey()).append(": ").append(it2.next());
      if (it2.hasNext()) {
        sb.append(", ");
      }
    }
    
    if (it.hasNext()) {
      sb.append(", ");
    }
  }
  
  return sb.toString();
}

代码示例来源:origin: com.atlassian.jira/jira-core

Set entries = configScheme.getConfigsByConfig().entrySet();
for (final Object entry1 : entries)

代码示例来源:origin: com.manydesigns/portofino-pageactions

for(Object entryObj : mm.entrySet()) {
  Map.Entry entry = (Map.Entry) entryObj;
  List pageActionContainer = (List) entry.getValue();

相关文章