1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package org.archive.queue;
26
27
28 /***
29 * Simple Stack: supports add and remove at top.
30 *
31 * @author gojomo
32 * @deprecated As of 1.10.0. Unused.
33 */
34 public interface Stack {
35 /***
36 * Add object to top of Stack
37 *
38 * @param object
39 */
40 public void push(Object object);
41
42 /***
43 * Remove and return item from top of Stack
44 * @return Item removed from top of Stack
45 */
46 public Object pop();
47
48 /***
49 * @return Return item from top of Stack without removing it.
50 */
51 public Object peek();
52
53 /***
54 * Number of items in the Stack.
55 */
56 public long height();
57
58 /***
59 * Release any OS resources, if necessary.
60 */
61 public void release();
62
63 /***
64 * @return True if empty.
65 */
66 public boolean isEmpty();
67 }