froehlich 02/01/26 04:00:56 Added: simplestore/src/java/org/apache/commons/simplestore Swap.java Log: applied patches from Juozas Baliuka [[EMAIL PROTECTED]]. - re-factored SoftRefMemoryStore - added Swapping Simultation and test case Revision Changes Path 1.1 jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/Swap.java Index: Swap.java =================================================================== /***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * version 1.1, a copy of which has been included with this distribution in * * the LICENSE file. * *****************************************************************************/ package org.apache.commons.simplestore; import java.io.IOException; import java.util.Collection; import java.util.Map; import java.util.Enumeration; import java.util.Set; /** * * @author Juozas Baliuka <a href="mailto:[EMAIL PROTECTED]"> * [EMAIL PROTECTED]</a> * @version $Id: Swap.java,v 1.1 2002/01/26 12:00:56 froehlich Exp $ */ public interface Swap { /** removes and returns the first object from Queue * @return null if Queue is empty */ public Object poll(); /** Adds object to Queue * @param object not null refence */ public void add(Object object); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>