MCPcopy Create free account
hub / github.com/BoltsFramework/Bolts-Java / Capture

Class Capture

Bolts/src/bolts/Capture.java:17–34  ·  view source on GitHub ↗

Provides a class that can be used for capturing variables in an anonymous class implementation. @param

Source from the content-addressed store, hash-verified

15 * @param <T>
16 */
17public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected