001    // Copyright 2007 Waterken Inc. under the terms of the MIT X license
002    // found at http://www.opensource.org/licenses/mit-license.html
003    package org.waterken.serial;
004    
005    import org.ref_send.promise.Promise;
006    
007    /**
008     * An element in a series.
009     * @param <T> {@link #getValue} type
010     */
011    public interface
012    Element<T> {
013    
014        /**
015         * element value
016         */
017        Promise<T> getValue();
018    
019        /**
020         * next element
021         */
022        Element<T> getNext();
023    }