01: ///////////////////////////////////////////////////////////////////////////////
02: // Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
03: //
04: // This library is free software; you can redistribute it and/or
05: // modify it under the terms of the GNU Lesser General Public
06: // License as published by the Free Software Foundation; either
07: // version 2.1 of the License, or (at your option) any later version.
08: //
09: // 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: * Interface for Objects which can be inserted into a TLinkedList.
25: *
26: * <p>
27: * Created: Sat Nov 10 15:23:41 2001
28: * </p>
29: *
30: * @author Eric D. Friedman
31: * @version $Id: TLinkable.java,v 1.2 2001/12/03 00:16:25 ericdf Exp $
32: * @see gnu.trove.TLinkedList
33: */
34:
35: public interface TLinkable extends Serializable {
36:
37: /**
38: * Returns the linked list node after this one.
39: *
40: * @return a <code>TLinkable</code> value
41: */
42: public TLinkable getNext();
43:
44: /**
45: * Returns the linked list node before this one.
46: *
47: * @return a <code>TLinkable</code> value
48: */
49: public TLinkable getPrevious();
50:
51: /**
52: * Sets the linked list node after this one.
53: *
54: * @param linkable a <code>TLinkable</code> value
55: */
56: public void setNext(TLinkable linkable);
57:
58: /**
59: * Sets the linked list node before this one.
60: *
61: * @param linkable a <code>TLinkable</code> value
62: */
63: public void setPrevious(TLinkable linkable);
64: }// TLinkable
|