Module brave

Class PredefinedPropagationFields


  • public class PredefinedPropagationFields
    extends PropagationFields
    Copy-on-write keeps propagation changes in a child context from affecting its parent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String get​(int index)  
      java.lang.String get​(java.lang.String name)
      Returns the value of the field with the specified key or null if not available
      int hashCode()  
      void put​(int index, java.lang.String value)  
      void put​(java.lang.String name, java.lang.String value)
      Replaces the value of the field with the specified key, ignoring if not a permitted field
      protected void putAllIfAbsent​(PropagationFields parent)  
      java.util.Map<java.lang.String,​java.lang.String> toMap()  
      • Methods inherited from class java.lang.Object

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

      • PredefinedPropagationFields

        protected PredefinedPropagationFields​(java.lang.String... fieldNames)
      • PredefinedPropagationFields

        protected PredefinedPropagationFields​(PredefinedPropagationFields parent,
                                              java.lang.String... fieldNames)
    • Method Detail

      • get

        public java.lang.String get​(java.lang.String name)
        Description copied from class: PropagationFields
        Returns the value of the field with the specified key or null if not available
        Specified by:
        get in class PropagationFields
      • get

        public java.lang.String get​(int index)
      • put

        public final void put​(java.lang.String name,
                              java.lang.String value)
        Description copied from class: PropagationFields
        Replaces the value of the field with the specified key, ignoring if not a permitted field
        Specified by:
        put in class PropagationFields
      • put

        public final void put​(int index,
                              java.lang.String value)
      • toMap

        public final java.util.Map<java.lang.String,​java.lang.String> toMap()
        Specified by:
        toMap in class PropagationFields
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object