Example usage for org.apache.commons.collections4 MultiMapUtils unmodifiableMultiValuedMap

List of usage examples for org.apache.commons.collections4 MultiMapUtils unmodifiableMultiValuedMap

Introduction

In this page you can find the example usage for org.apache.commons.collections4 MultiMapUtils unmodifiableMultiValuedMap.

Prototype

public static <K, V> MultiValuedMap<K, V> unmodifiableMultiValuedMap(
        final MultiValuedMap<? extends K, ? extends V> map) 

Source Link

Document

Returns an UnmodifiableMultiValuedMap backed by the given map.

Usage

From source file:com.github.sevntu.checkstyle.ordering.MethodOrder.java

public MethodOrder(Dependencies dependencies) {
    this.methods = MapUtils.unmodifiableMap(getAllMethods(dependencies));
    this.initialOrdering = ListUtils.unmodifiableList(getInitialMethodOrdering(methods));
    this.currentOrdering = this.initialOrdering;
    final Map<ResolvedCall, MethodInvocation> callsToInvocations = getAllInvocations(dependencies, methods);
    this.invocations = SetUtils.unmodifiableSet(new HashSet<>(callsToInvocations.values()));
    this.invocationNesting = MultiMapUtils
            .unmodifiableMultiValuedMap(getMethodInvocationsNesting(callsToInvocations));
}