Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Implemented
-
None
-
None
Description
The type org.apache.tapestry5.ioc.services.PerThreadValue<T> should provide more convenience methods like Map does, e. g.:
- T computeIfAbsent(Supplier<? super T> fn)
- TÂ computeIfPresent(Function<? super T, ? extends T> fn)
- T compute(Function<? super T, ? extends T> fn){}
I believe these methods would simplify using PerThreadValue and they should be implementable with default methods directly on the interface.
Attachments
Issue Links
- mentioned in
-
Page Loading...