Files
Brainstorm/Common/src/com/common/util/ICircularQueue.java

29 lines
878 B
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* Copyright (c) 2002,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.util;
/**
* Defines the interface for a standard queueing mechanism.
*/
public interface ICircularQueue {
/**
* Queues the given value.
* @param value The value to place in the queue.
*/
public boolean enqueue(Object value);
/**
* Gets the number of values in the queue.
* @return The queued element count.
*/
public int getSize();
/**
* Gets an iterator over the values in the queue.
* @return A reversable iterator over the queued values.
*/
public IReversableIterator iterator();
}//ICircularQueue//