[ https://issues.apache.org/jira/browse/TAP5-2743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715278#comment-17715278 ]
Hudson commented on TAP5-2743: ------------------------------ SUCCESS: Integrated in Jenkins build Tapestry » tapestry-java-17-freestyle #47 (See [https://ci-builds.apache.org/job/Tapestry/job/tapestry-java-17-freestyle/47/]) TAP5-2743: PerThreadValue<T> convenience methods (github: rev 9501c0fe2b983ed20de2dcd6e1dd9b612af9f877) * (add) tapestry-ioc/src/test/groovy/ioc/specs/PerThreadValueSpec.groovy * (edit) tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/PerThreadValue.java * (edit) tapestry-ioc/src/test/groovy/ioc/specs/PerthreadManagerImplSpec.groovy > PerThreadValue<T> should provide more convenience methods > --------------------------------------------------------- > > Key: TAP5-2743 > URL: https://issues.apache.org/jira/browse/TAP5-2743 > Project: Tapestry 5 > Issue Type: Improvement > Components: tapestry-ioc > Reporter: Ben Weidig > Assignee: Ben Weidig > Priority: Trivial > Time Spent: 10m > Remaining Estimate: 0h > > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010)