Two maps. One Map<K1, V>
and one Map<K2, V>
. If you must have a single interface, write a wrapper class that implements said methods.
More Related Contents:
- How does array work? How to create a basic array data structure using java? [closed]
- Data Structure in Java
- How to check if an integer is in a set of given ranges? [closed]
- How to implement a tree data-structure in Java?
- How do I remove objects from an array in Java?
- JTable design to synchronize with back-end data-structure
- How to print binary tree diagram in Java?
- How to detect a loop in a linked list?
- How would you implement an LRU cache in Java?
- How do I create a Linked List Data Structure in Java? [closed]
- What is the best way to combine two lists into a map (Java)?
- Why should I use Deque over Stack?
- Data structures that can map a range of keys to a value
- What are the time complexities of various data structures?
- How can CopyOnWriteArrayList be thread-safe?
- How to create a 2 way map in java
- Trie data structures – Java [closed]
- Why doesn’t java.util.Set have get(int index)?
- Java: Avoid inserting duplicate in arraylist
- Anagram algorithm in java
- Sample Directed Graph and Topological Sort Code [closed]
- When to use a List over an Array in Java?
- LRU cache in Java with Generics and O(1) operations
- Time Complexity for Java ArrayList
- Automatically sorted by values map in Java
- How to restore the PriorityQueue to its initial state before the method call?
- Hash : How does it work internally?
- How to implement a Median-heap
- Creating a LinkedList class from scratch
- The simplest algorithm for poker hand evaluation