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

ASF subversion and git services commented on LOG4J2-1932:
---------------------------------------------------------

Commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6 in logging-log4j2's branch 
refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=864b7a8 ]

[LOG4J2-1932] Add containsKey() methods to
org.apache.logging.log4j.message.MapMessage.

> Add containsKey() method to class org.apache.logging.log4j.message.MapMessage
> -----------------------------------------------------------------------------
>
>                 Key: LOG4J2-1932
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1932
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>
> Add the method {{containsKey()}} method to class 
> {{org.apache.logging.log4j.message.MapMessage}} which delegates to the 
> underlying data:
> {code:java}
>     /**
>      * Returns {@code true} if this data structure contains the specified 
> key, {@code false} otherwise.
>      *
>      * @param key the key whose presence to check. May be {@code null}.
>      * @return {@code true} if this data structure contains the specified 
> key, {@code false} otherwise
>      * @since 2.9
>      */
>     public boolean containsKey(final String key) {
>         return data.containsKey(key);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to