Provides a class that can be used for capturing variables in an anonymous class implementation. @param
| 15 | * @param <T> |
| 16 | */ |
| 17 | public class Capture<T> { |
| 18 | private T value; |
| 19 | |
| 20 | public Capture() { |
| 21 | } |
| 22 | |
| 23 | public Capture(T value) { |
| 24 | this.value = value; |
| 25 | } |
| 26 | |
| 27 | public T get() { |
| 28 | return value; |
| 29 | } |
| 30 | |
| 31 | public void set(T value) { |
| 32 | this.value = value; |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected