feat: add some javadoc

This commit is contained in:
Yadunand Prem
2022-10-16 03:46:01 +08:00
parent 6a4ef4ea70
commit 4ee04937da
9 changed files with 62 additions and 15 deletions

View File

@@ -28,7 +28,9 @@ public class Memo<T> extends Lazy<T> {
return result;
}
public <R, S> Memo<R> combine(Memo<? extends S> other, Combiner<? extends R, ? super T, ? super S> combiner) {
public <R, S> Memo<R> combine(
Memo<? extends S> other,
Combiner<? extends R, ? super T, ? super S> combiner) {
return Memo.<R>from(() -> combiner.combine(this.get(), other.get()));
}