Example usage for org.apache.commons.collections15 Buffer clear

List of usage examples for org.apache.commons.collections15 Buffer clear

Introduction

In this page you can find the example usage for org.apache.commons.collections15 Buffer clear.

Prototype

void clear();

Source Link

Document

Removes all of the elements from this collection (optional operation).

Usage

From source file:edu.brown.benchmark.seats.SEATSClient.java

protected final void clearCache() {
    for (BitSet seats : CACHE_BOOKED_SEATS.values()) {
        seats.clear();//from ww  w.j av a 2s  .  c om
    } // FOR
    for (Buffer<Reservation> queue : CACHE_RESERVATIONS.values()) {
        queue.clear();
    } // FOR
    for (Set<Long> f_ids : CACHE_CUSTOMER_BOOKED_FLIGHTS.values()) {
        synchronized (f_ids) {
            f_ids.clear();
        } // SYNCH
    } // FOR
}