Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1932

Add containsKey() method to class org.apache.logging.log4j.message.MapMessage

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0
    • Component/s: None
    • Labels:
      None

      Description

      Add the method containsKey() method to class org.apache.logging.log4j.message.MapMessage which delegates to the underlying data:

          /**
           * 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);
          }
      

        Attachments

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: