Java String to Map toMap(String componentName, String contextName)

Here you can find the source of toMap(String componentName, String contextName)

Description

to Map

License

Open Source License

Declaration

public static Map<String, String> toMap(String componentName, String contextName) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2012 Boeing./*from   w  w w .j  ava2s .co m*/
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/

import java.util.HashMap;

import java.util.Map;

public class Main {
    public static Map<String, String> toMap(String componentName, String contextName) {
        Map<String, String> data = new HashMap<String, String>();
        data.put("component.name", componentName);
        data.put("context.name", contextName);
        return data;
    }
}

Related

  1. stringToMap(String src)
  2. StringToMap(String str)
  3. stringToMap(String str)
  4. stringToMap(String value)
  5. stringToMap(String[] strings)
  6. toMap(String jsonStr)
  7. toMap(String parameters)
  8. toMap(String s)
  9. toMap(String s)