You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/02/11 19:45:50 UTC

cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/reuse IFastQueue.java IJglQueue.java

dlr         02/02/11 10:45:50

  Added:       src/java/org/apache/stratum/jcs/utils/reuse IFastQueue.java
  Removed:     src/java/org/apache/stratum/jcs/utils/reuse IJglQueue.java
  Log:
  IFastQueue replacing IJglQueue interface.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/reuse/IFastQueue.java
  
  Index: IFastQueue.java
  ===================================================================
  
  package org.apache.stratum.jcs.utils.reuse;
  
  import java.util.Enumeration;
  
  /**
   *  Used to define the interface of a queue from the jgl library.
   *
   *@author     asmuts
   *@created    January 15, 2002
   */
  public interface IJglQueue
  {
      /**
       *  Remove all of my objects.
       */
      public void clear();
  
  
      /**
       *  Return true if I contain no objects.
       *
       *@return    The empty value
       */
      public boolean isEmpty();
  
  
      /**
       *  Return the number of objects that I contain.
       *
       *@return    Description of the Return Value
       */
      public int size();
  
  
      /**
       *  Return the maximum number of objects that I can contain.
       *
       *@return    Description of the Return Value
       */
      public int maxSize();
  
  
      /**
       *  Return the object at my front.
       *
       *@return    Description of the Return Value
       */
      public Object front();
  
  
      /**
       *  Return the object at my back.
       *
       *@return    Description of the Return Value
       */
      public Object back();
  
  
      /**
       *  Add an object to my back.
       *
       *@param  object  The object to add.
       *@return         Description of the Return Value
       */
      public Object add( Object object );
  
  
      /**
       *  Add an object to my back.
       *
       *@param  object  Description of the Parameter
       */
      public void push( Object object );
  
  
      /**
       *  Remove an object from my front and return it.
       *
       *@return    Description of the Return Value
       */
      public Object pop();
  
  
      /**
       *  Return an Enumeration of my components.
       *
       *@return    Description of the Return Value
       */
      public Enumeration elements();
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>