--- projects/cms/source/util/uk/org/iscream/cms/util/Queue.java 2001/01/18 19:13:57 1.4 +++ projects/cms/source/util/uk/org/iscream/cms/util/Queue.java 2001/01/19 01:11:55 1.5 @@ -13,7 +13,7 @@ import uk.ac.ukc.iscream.util.*; * actually contains some elements. * * @author $Author: tdb $ - * @version $Id: Queue.java,v 1.4 2001/01/18 19:13:57 tdb Exp $ + * @version $Id: Queue.java,v 1.5 2001/01/19 01:11:55 tdb Exp $ */ public class Queue { @@ -22,7 +22,7 @@ public class Queue { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.4 $"; + public static final String REVISION = "$Revision: 1.5 $"; //---STATIC METHODS--- @@ -124,10 +124,10 @@ public class Queue { * @return the current size of the queue. */ public int queueSize(int queue) throws InvalidQueueException { - if (queue >= _lists.size() || _lists.get(queue) == null) { + if (queue >= _lists.size() || _lists.get(queue) == null) { throw new InvalidQueueException("Requested queue "+queue+" does not exist"); } - return ((LinkedList) _lists.get(queue)).size(); + return ((LinkedList) _lists.get(queue)).size(); } /** @@ -137,7 +137,7 @@ public class Queue { * @return the element-ometer */ public int elementCount() { - return _count; + return _count; } /**