accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <...@git.apache.org>
Subject [GitHub] accumulo pull request: ACCUMULO-1755: Modified TSBW so that all cl...
Date Wed, 02 Mar 2016 15:48:12 GMT
Github user keith-turner commented on the pull request:

    https://github.com/apache/accumulo/pull/75#issuecomment-191295793
  
    Java 8 added accumulateAndGet to AtomicInt which can be used w/ lambdas to compute min
max.  Java 8 is so nice, but we can't use it yet.
    
    In java 8 could do the following
    
    ```java
       atomicInt.accumulateAndGet(update, Math::min)
    ```
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message