You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/06/02 22:40:04 UTC
[jira] [Closed] (LOG4J2-1932) Add containsKey() method to class
org.apache.logging.log4j.message.MapMessage
[ https://issues.apache.org/jira/browse/LOG4J2-1932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed LOG4J2-1932.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.9
commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6.
> 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
> Fix For: 2.9
>
>
> 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)