Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BidirectionalMap.java « eac « asn1 « bouncycastle « org « java « main « src - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3cf14503df75fc970eecbc6235f283ce74a7bc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.bouncycastle.asn1.eac;

import java.util.Hashtable;

public class BidirectionalMap
    extends Hashtable
{
    private static final long serialVersionUID = -7457289971962812909L;

    Hashtable reverseMap = new Hashtable();

    public Object getReverse(Object o)
    {
        return reverseMap.get(o);
    }

    public Object put(Object key, Object o)
    {
        reverseMap.put(o, key);
        return super.put(key, o);
    }

}