Example usage for org.apache.commons.collections15.buffer PriorityBuffer PriorityBuffer

List of usage examples for org.apache.commons.collections15.buffer PriorityBuffer PriorityBuffer

Introduction

In this page you can find the example usage for org.apache.commons.collections15.buffer PriorityBuffer PriorityBuffer.

Prototype

public PriorityBuffer(int capacity) 

Source Link

Document

Constructs a new empty buffer that sorts in ascending order by the natural order of the objects added, specifying an initial capacity.

Usage

From source file:edu.cuny.cat.market.matching.FourHeapShoutEngine.java

public FourHeapShoutEngine() {
    bIn = new PriorityBuffer<Shout>(ShoutEngine.AscendingOrder);
    bOut = new PriorityBuffer<Shout>(ShoutEngine.DescendingOrder);
    sIn = new PriorityBuffer<Shout>(ShoutEngine.DescendingOrder);
    sOut = new PriorityBuffer<Shout>(ShoutEngine.AscendingOrder);
}