当前位置: 首页>>代码示例>>Java>>正文


Java Multimaps.unmodifiableListMultimap方法代码示例

本文整理汇总了Java中com.google.common.collect.Multimaps.unmodifiableListMultimap方法的典型用法代码示例。如果您正苦于以下问题:Java Multimaps.unmodifiableListMultimap方法的具体用法?Java Multimaps.unmodifiableListMultimap怎么用?Java Multimaps.unmodifiableListMultimap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.common.collect.Multimaps的用法示例。


在下文中一共展示了Multimaps.unmodifiableListMultimap方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fix

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
public void fix(boolean requireDirected) {
  adjacencies = Multimaps.unmodifiableListMultimap(adjacencies);
  allNodes = Collections.unmodifiableSet(allNodes);

  if (requireDirected) {
    List<List<Node>> cyclicReferences = GraphAlgos.checkDirected(this);
    if (cyclicReferences.size() > 0) {
      throw new IllegalArgumentException(
          "A logical plan must be a valid DAG.  You have cyclic references in your graph.  " + cyclicReferences);
    }
  }
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:13,代码来源:AdjacencyList.java

示例2: computeAllFeatures

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
protected ListMultimap<String, JvmFeature> computeAllFeatures() {
	JvmType rawType = getRawType();
	if (!(rawType instanceof JvmDeclaredType)) {
		return ArrayListMultimap.create();
	}
	ListMultimap<String, JvmFeature> result = ArrayListMultimap.create();
	Multimap<String, AbstractResolvedOperation> processed = HashMultimap.create();
	Set<String> processedFields = Sets.newHashSetWithExpectedSize(5);
	computeAllFeatures((JvmDeclaredType)rawType, processed, processedFields, result, featureIndex.keySet());
	return Multimaps.unmodifiableListMultimap(result);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:12,代码来源:RawResolvedFeatures.java

示例3: getServiceClasses

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
@Override
public ListMultimap<String, String> getServiceClasses() {

  final ListMultimap<String, String> result =
      ArrayListMultimap.create(super.getServiceClasses());

  result.put(this.defaultProtocolName,
      this.defaultProtocol.getClass().getName());

  return Multimaps.unmodifiableListMultimap(result);
}
 
开发者ID:GenomicParisCentre,项目名称:eoulsan,代码行数:12,代码来源:DataProtocolService.java

示例4: getServiceClasses

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
/**
 * Return the list of the available services.
 * @return a MultiMap with the available services
 */
public ListMultimap<String, String> getServiceClasses() {

  if (this.notYetLoaded) {
    reload();
  }

  return Multimaps.unmodifiableListMultimap(this.classNames);
}
 
开发者ID:GenomicParisCentre,项目名称:eoulsan,代码行数:13,代码来源:ServiceNameLoader.java

示例5: getListeners

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
public ListMultimap<String, Consumer<SuccessEvent>> getListeners() {
  return Multimaps.unmodifiableListMultimap(listeners);
}
 
开发者ID:Energyxxer,项目名称:Vanilla-Injection,代码行数:4,代码来源:InjectionGroup.java

示例6: ContentMatchMap

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
ContentMatchMap(ListMultimap<String, ExprNode> matches)
{
    this.matches = matches != null
            ? Multimaps.unmodifiableListMultimap(matches)
            : EMPTY_MULTIMAP;
}
 
开发者ID:impl,项目名称:yashiro,代码行数:7,代码来源:ContentMatchMap.java

示例7: unmodifiableMap

import com.google.common.collect.Multimaps; //导入方法依赖的package包/类
/**
 * Returns an unmodifiable view of the specified parameter map. This method
 * allows modules to provide users with "read-only" access to internal
 * parameter maps. Query operations on the returned map "read through" to the
 * specified map, and attempts to modify the returned map, whether direct or
 * via its iterator or collection views, result in an {@code
 * UnsupportedOperationException}.
 *
 * @param map the parameter map for which to return an unmodifiable view
 * @return an unmodifiable view of the specified parameter map
 * @throws NullPointerException if {@code map} is null
 */
public static UriParameterMap unmodifiableMap(UriParameterMap map) {
  return new UriParameterMap(
      Multimaps.unmodifiableListMultimap(map.delegate()));
}
 
开发者ID:google,项目名称:gdata-java-client,代码行数:17,代码来源:UriParameterMap.java


注:本文中的com.google.common.collect.Multimaps.unmodifiableListMultimap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。