incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRECTMEMORY-65) put vs update - not consistent
Date Mon, 20 Feb 2012 10:10:36 GMT

    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211753#comment-13211753
] 

Simone Tripodi commented on DIRECTMEMORY-65:
--------------------------------------------

I couldn't agree on it? :) The [Map#put(K, V)|http://docs.oracle.com/javase/6/docs/api/java/util/Map.html#put(K,
V)] is indeed the perfect pattern!

+1 for that change, and good catch!
                
> put vs update - not consistent
> ------------------------------
>
>                 Key: DIRECTMEMORY-65
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-65
>             Project: Apache DirectMemory
>          Issue Type: Wish
>            Reporter: Daniel Manzke
>
> There should only be one way to create / update a value. For a cache it makes no difference
if a key already exists or not. It is like a Map, which only has a put and no update method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message