01: package org.zilonis.util;
02:
03: /**
04: * Copyright (c) 2005 Elie Levy <elie.levy@zilonis.org>
05: * All rights reserved
06: *
07: * This License governs use of the accompanying Software, and your use of the
08: * Software constitutes acceptance of this license.
09: *
10: * You may use this Software for any non-commercial purpose, subject to the
11: * restrictions in this license. Some purposes which can be non-commercial are
12: * teaching, academic research, and personal experimentation. You may also
13: * distribute this Software with books or other teaching materials, or publish
14: * the Software on websites, that are intended to teach the use of the
15: * Software.
16: *
17: *
18: * You may not use or distribute this Software or any derivative works in any
19: * form for commercial purposes. Examples of commercial purposes would be
20: * running business operations, licensing, leasing, or selling the Software, or
21: * distributing the Software for use with commercial products.
22: *
23: * You may modify this Software and distribute the modified Software for
24: * non-commercial purposes, however, you may not grant rights to the Software
25: * or derivative works that are broader than those provided by this License.
26: * For example, you may not distribute modifications of the Software under
27: * terms that would permit commercial use, or under terms that purport to
28: * require the Software or derivative works to be sublicensed to others.
29: *
30: * You may use any information in intangible form that you remember after
31: * accessing the Software. However, this right does not grant you a license to
32: * any of the copyrights or patents for anything you might create using such
33: * information.
34: *
35: * In return, we simply require that you agree:
36: *
37: * Not to remove any copyright or other notices from the Software.
38: *
39: *
40: * That if you distribute the Software in source or object form, you will
41: * include a verbatim copy of this license.
42: *
43: *
44: * That if you distribute derivative works of the Software in source code form
45: * you do so only under a license that includes all of the provisions of this
46: * License, and if you distribute derivative works of the Software solely in
47: * object form you do so only under a license that complies with this License.
48: *
49: *
50: * That if you have modified the Software or created derivative works, and
51: * distribute such modifications or derivative works, you will cause the
52: * modified files to carry prominent notices so that recipients know that they
53: * are not receiving the original Software. Such notices must state: (i) that
54: * you have changed the Software; and (ii) the date of any changes.
55: *
56: *
57: * THAT THE SOFTWARE COMES "AS IS", WITH NO WARRANTIES. THIS MEANS NO EXPRESS,
58: * IMPLIED OR STATUTORY WARRANTY, INCLUDING WITHOUT LIMITATION, WARRANTIES OF
59: * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR ANY WARRANTY OF TITLE
60: * OR NON-INFRINGEMENT. ALSO, YOU MUST PASS THIS DISCLAIMER ON WHENEVER YOU
61: * DISTRIBUTE THE SOFTWARE OR DERIVATIVE WORKS.
62: *
63: *
64: * THAT NEITHER ZILONIS NOR THE AUTHOR WILL BE LIABLE FOR ANY DAMAGES RELATED
65: * TO THE SOFTWARE OR THIS LICENSE, INCLUDING DIRECT, INDIRECT, SPECIAL,
66: * CONSEQUENTIAL OR INCIDENTAL DAMAGES, TO THE MAXIMUM EXTENT THE LAW PERMITS,
67: * NO MATTER WHAT LEGAL THEORY IT IS BASED ON. ALSO, YOU MUST PASS THIS
68: * LIMITATION OF LIABILITY ON WHENEVER YOU DISTRIBUTE THE SOFTWARE OR
69: * DERIVATIVE WORKS.
70: *
71: *
72: * That if you sue anyone over patents that you think may apply to the Software
73: * or anyone's use of the Software, your license to the Software ends
74: * automatically.
75: *
76: *
77: * That your rights under the License end automatically if you breach it in any
78: * way.
79: *
80: *
81: * Elie Levy reserves all rights not expressly granted to you in this
82: * license.
83: *
84: */
85:
86: public interface BinaryTree<Element> extends Comparable<Element> {
87:
88: public Element getRight();
89:
90: public Element getLeft();
91:
92: public void setLeft(Element element);
93:
94: public void setRight(Element element);
95: }
|