blob: 973162f1e4c50642b005d1849697bdf4dd599d70 [file] [log] [blame]
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.horizontalclassmerging;
import com.android.tools.r8.utils.collections.BidirectionalOneToOneHashMap;
import java.util.Map;
/** The inverse of a {@link ManyToOneMap} used for generating graph lens maps. */
public class ManyToOneInverseMap<K, V> {
private final BidirectionalOneToOneHashMap<V, K> biMap;
private final Map<V, K> extraMap;
ManyToOneInverseMap(BidirectionalOneToOneHashMap<V, K> biMap, Map<V, K> extraMap) {
this.biMap = biMap;
this.extraMap = extraMap;
}
public BidirectionalOneToOneHashMap<V, K> getBiMap() {
return biMap;
}
public Map<V, K> getExtraMap() {
return extraMap;
}
}