Initial commit from SVN.
This commit is contained in:
29
Common/src/com/common/util/ICircularQueue.java
Normal file
29
Common/src/com/common/util/ICircularQueue.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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//
|
||||
Reference in New Issue
Block a user