--- projects/cms/source/util/uk/org/iscream/cms/util/Queue.java 2001/05/29 17:02:35 1.22 +++ projects/cms/source/util/uk/org/iscream/cms/util/Queue.java 2003/02/05 14:27:59 1.26 @@ -1,11 +1,31 @@ +/* + * i-scream central monitoring system + * http://www.i-scream.org.uk + * Copyright (C) 2000-2002 i-scream + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + //---PACKAGE DECLARATION--- -package uk.org.iscream.cms.server.util; +package uk.org.iscream.cms.util; //---IMPORTS--- import java.util.LinkedList; import java.util.NoSuchElementException; import java.util.Random; -import uk.org.iscream.cms.server.util.*; +//import uk.org.iscream.cms.util.*; /** * A Queue class designed to operate in a multi-threaded environment, with @@ -14,7 +34,7 @@ import uk.org.iscream.cms.server.util.*; * actually contains some elements. * * @author $Author: tdb $ - * @version $Id: Queue.java,v 1.22 2001/05/29 17:02:35 tdb Exp $ + * @version $Id: Queue.java,v 1.26 2003/02/05 14:27:59 tdb Exp $ */ public class Queue { @@ -23,7 +43,7 @@ public class Queue { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.22 $"; + public static final String REVISION = "$Revision: 1.26 $"; /** * Pass to constructor to remove a RANDOM item from @@ -228,7 +248,8 @@ public class Queue { /** * Returns the total numer of elements to have passed - * through this queue (ie. a counter on the add method). + * through this queue. This is essentially a counter + * on the add method. * * @return the element-ometer. */