-
public final class LocalAttributeKt
-
-
Method Summary
Modifier and Type Method Description final static <ERROR CLASS>enrichWithConstantAttribute(Map<String, Object> $self, LocalAttribute.Constant attribute)Adds local attribute to the mutable map. final static Map<String, Object>enrichWithNonNullAttribute(Map<String, Object> $self, LocalAttribute.Key key, Object value)Adds value to the map for specified key if value is not null. final static <ERROR CLASS>enrichWithLocalAttribute(Map<String, Object> $self, LocalAttribute.Key key, Object value)Adds value to the map for specified key. -
-
Method Detail
-
enrichWithConstantAttribute
final static <ERROR CLASS> enrichWithConstantAttribute(Map<String, Object> $self, LocalAttribute.Constant attribute)
Adds local attribute to the mutable map.
- Parameters:
attribute-Constant attribute value that should be added. Key for the attribute will be resolved automatically.
-
enrichWithNonNullAttribute
final static Map<String, Object> enrichWithNonNullAttribute(Map<String, Object> $self, LocalAttribute.Key key, Object value)
Adds value to the map for specified key if value is not null.
- Parameters:
key-local attribute key.
value-attribute value.
-
enrichWithLocalAttribute
final static <ERROR CLASS> enrichWithLocalAttribute(Map<String, Object> $self, LocalAttribute.Key key, Object value)
Adds value to the map for specified key.
- Parameters:
key-local attribute key.
value-attribute value.
-
-
-
-