Java ConcurrentHashMap setFieldValue(Object value, ConcurrentHashMap fieldHolder, String name, String desc)

Here you can find the source of setFieldValue(Object value, ConcurrentHashMap fieldHolder, String name, String desc)

Description

set Field Value

License

Open Source License

Declaration

public static void setFieldValue(Object value,
            ConcurrentHashMap fieldHolder, String name, String desc) 

Method Source Code

//package com.java2s;
/*/*from   ww w  .  j a  v  a2 s.  c o m*/
 * Copyright 2012 Alibaba.com All right reserved. This software is the
 * confidential and proprietary information of Alibaba.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Alibaba.com.
 */

import java.util.concurrent.ConcurrentHashMap;

public class Main {
    public static void setFieldValue(Object value,
            ConcurrentHashMap fieldHolder, String name, String desc) {
        fieldHolder.put(getFieldKey(name, desc), value);
    }

    public static String getFieldKey(String name, String desc) {
        return name + "(" + desc + ")";
    }
}

Related

  1. getMapSafe( ConcurrentHashMap> map, String key)
  2. max(ConcurrentHashMap map)
  3. ParseKeyValString(String keyValString, ConcurrentHashMap map)
  4. parseMap(String config, ConcurrentHashMap map)
  5. putIfAbsent(ConcurrentHashMap col, K key, V val)