blob: 49cb106f43102c524935e1e029acb81cebb11227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package bjc.utils.funcdata;
import java.util.List;
public class SentryList<T> extends FunctionalList<T> {
public SentryList() {
super();
}
public SentryList(List<T> backing) {
super(backing);
}
public boolean add(T item) {
boolean val = super.add(item);
if(val)
System.out.println("Added item (" + item + ") to list");
return val;
}
}
|