Code example for LinkedHashMap

Methods: put

0
 
import java.util.LinkedHashMap; 
 
public class QMFStatistic 
{ 
    private final LinkedHashMap<String,Object> _map = new LinkedHashMap<String,Object>();
    private static final String NAME = "name";
    private static final String TYPE = "type";
    private static final String UNIT = "unit";
    private static final String DESCRIPTION = "desc";
 
 
    public QMFStatistic(String name, QMFType type, String unit, String description)
    { 
        _map.put(NAME, name);
        _map.put(TYPE, type.codeValue());
        if(unit != null)
        { 
            _map.put(UNIT, unit);
        } 
        if(description != null)
        { 
            _map.put(DESCRIPTION, description);
        } 
 
    } 
 
    public void encode(Encoder encoder)