| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Monitor |
|
| 0.0;0 | ||||
| Monitor$Listener |
|
| 0.0;0 | ||||
| Monitor$Listener$Event |
|
| 0.0;0 |
| 1 | package org.webslinger.io; | |
| 2 | ||
| 3 | import java.io.IOException; | |
| 4 | ||
| 5 | public interface Monitor<I, L extends Monitor.Listener<I>> { | |
| 6 | void add(I item, L listener) throws IOException; | |
| 7 | void remove(I item, L listener) throws IOException; | |
| 8 | public interface Listener<I> { | |
| 9 | 0 | enum Event { CHANGE, CREATE, DELETE }; |
| 10 | void acceptEvent(I item, Event event); | |
| 11 | } | |
| 12 | } |