Class MapEntry


  • final class MapEntry
    extends java.lang.Object

    Consider this class private.

    Used to represent map entries in a generic fashion because the default Jackson behavior uses the key as the element tag. Using the key as an element/property name would mean that you cannot have a generic JSON/XML schema for all log event.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry​(java.lang.String key, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getKey()  
      java.lang.String getValue()  
      int hashCode()  
      void setKey​(java.lang.String key)  
      void setValue​(java.lang.String value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • key

        private java.lang.String key
      • value

        private java.lang.String value
    • Constructor Detail

      • MapEntry

        public MapEntry​(java.lang.String key,
                        java.lang.String value)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getKey

        public java.lang.String getKey()
      • getValue

        public java.lang.String getValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setKey

        public void setKey​(java.lang.String key)
      • setValue

        public void setValue​(java.lang.String value)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object