Example usage for com.google.common.collect ImmutableMap clear

List of usage examples for com.google.common.collect ImmutableMap clear

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableMap clear.

Prototype

public final void clear() 

Source Link

Usage

From source file:org.elasticsearch.index.percolator.PercolatorExecutor.java

public synchronized void close() {
    ImmutableMap<String, Query> old = queries;
    queries = ImmutableMap.of();/*from  w  ww .  j  a v  a  2  s .  c  o m*/
    old.clear();
}