io.hyperfoil.impl.FutureSupplier Maven / Gradle / Ivy
package io.hyperfoil.impl;
import io.hyperfoil.function.SerializableSupplier;
public class FutureSupplier implements SerializableSupplier {
private T object;
public void set(T object) {
assert this.object == null;
assert object != null;
this.object = object;
}
@Override
public T get() {
return object;
}
}