All Downloads are FREE. Search and download functionalities are using the official Maven repository.

delight.async.Value Maven / Gradle / Ivy

Go to download

Asynchronous utilities for Java and GWT applications. Includes a simple promise implementation for Java.

There is a newer version: 0.1.5
Show newest version
package delight.async;

public class Value {

    private T value;

    public synchronized T get() {
        return value;
    }

    public synchronized Value set(final T value) {
        this.value = value;
        return this;
    }

    public Value(final T value) {
        super();
        this.value = value;
    }

    @Override
    public String toString() {
        return "[(" + value + ") wrapped in (" + super.toString() + ")]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy