public AttributeMap putIfAbsent()

in src/main/java/com/aliyun/tea/utils/AttributeMap.java [29:35]


    public <T> AttributeMap putIfAbsent(Key<T> key, T value) {
        Validate.notNull(key, "Key to set must not be null.");
        if (attributes.get(key) == null) {
            attributes.put(key, value);
        }
        return this;
    }