Code example for ArrayDeque

0
 * @param <V> 
 */ 
public final class StackMap<K, V> { 
 
  private final HashMap<K, V> map = new HashMap<>();
  private final Deque<K> stack = new ArrayDeque<>();
 
  /** 
   * Immutable class for a Key/Value tuple. 
   */ 
  public class StackMapEntry<KEY, VALUE> implements Entry<KEY, VALUE> {
 
    private final KEY key;
    private final VALUE value;
 
    public StackMapEntry(KEY key, VALUE value) {
      super(); 
      this.key = key;
      this.value = value;
    } 
Contextual code suggestions in your IDE  Get Codota for Java