1 /////////////////////////////////////////////////////////////////////////////// 2 // Copyright (c) 2001, Eric D. Friedman All Rights Reserved. 3 // 4 // This library is free software; you can redistribute it and/or 5 // modify it under the terms of the GNU Lesser General Public 6 // License as published by the Free Software Foundation; either 7 // version 2.1 of the License, or (at your option) any later version. 8 // 9 // This library is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU Lesser General Public 15 // License along with this program; if not, write to the Free Software 16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 /////////////////////////////////////////////////////////////////////////////// 18 19 package gnu.trove; 20 21 import java.io.Serializable; 22 23 24 /** 25 * Interface for Objects which can be inserted into a TLinkedList. 26 * 27 * <p> 28 * Created: Sat Nov 10 15:23:41 2001 29 * </p> 30 * 31 * @author Eric D. Friedman 32 * @version $Id: TLinkable.java,v 1.2 2001/12/03 00:16:25 ericdf Exp $ 33 * @see gnu.trove.TLinkedList 34 */ 35 36 public interface TLinkable extends Serializable { 37 38 /** 39 * Returns the linked list node after this one. 40 * 41 * @return a <code>TLinkable</code> value 42 */ 43 public TLinkable getNext(); 44 45 /** 46 * Returns the linked list node before this one. 47 * 48 * @return a <code>TLinkable</code> value 49 */ 50 public TLinkable getPrevious(); 51 52 /** 53 * Sets the linked list node after this one. 54 * 55 * @param linkable a <code>TLinkable</code> value 56 */ 57 public void setNext(TLinkable linkable); 58 59 /** 60 * Sets the linked list node before this one. 61 * 62 * @param linkable a <code>TLinkable</code> value 63 */ 64 public void setPrevious(TLinkable linkable); 65 }// TLinkable 66