blob: ad1cd20ae72db1841142f703cbda435062798964 [file] [log] [blame]
package org.apache.yoko.util;
/** A holder of stuff */
public interface Sequential<T> {
int size();
Place<T> put(T elem);
interface Place<T> {
/**
* Relinquish this place in the sequence.
*
* @return the element if it is successfully removed from the sequence<br>
* or <code>null</code> if the element has already been removed by another operation
*/
T relinquish();
}
}