Example usage for java.util Map put

List of usage examples for java.util Map put

Introduction

In this page you can find the example usage for java.util Map put.

Prototype

V put(K key, V value);

Source Link

Document

Associates the specified value with the specified key in this map (optional operation).

Usage

From source file:Main.java

public static Map<String, Object> getLoginMap(String ownerTel, String userPassword) {
    Map<String, Object> map = getMap();
    map.put("ownerTel", ownerTel);
    map.put("userPassword", userPassword);
    return map;/*  w  w w  .  j av a2  s.c o m*/
}

From source file:Main.java

public static Map<String, Object> getUploadCarOwnerHeader(Integer carOwnerSeq, String carOwnerPic) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("carOwnerPic", carOwnerPic);
    return map;//  ww  w  .java  2  s  . c o m
}

From source file:Main.java

public static <K, V> Map<K, V> makeMap(K key, V value) {
    Map<K, V> map = new HashMap<K, V>();
    map.put(key, value);
    return map;/*w  w w. j a v a2s .  c  om*/
}

From source file:Main.java

public static Map<String, Object> getCarEndorsementMap(Integer carOwnerSeq, Integer status) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("status", status);
    return map;//  w ww.jav  a2 s. c om
}

From source file:Main.java

public static Map<String, Object> getCarOwnerHeaderPic(Integer carOwnerSeq, String carOwnerPic) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("carOwnerPic", carOwnerPic);
    return map;//from   w w  w . j a  v  a  2s . co  m
}

From source file:Main.java

public static Map<String, Object> getCarOwnerNickName(Integer carOwnerSeq, String ownerNickName) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("ownerNickName", ownerNickName);
    return map;/* ww w .j a v a  2s .c o m*/
}

From source file:Main.java

public static <K, V> Map<K, V> makeMap(K key1, V value1, K key2, V value2) {
    Map<K, V> map = new HashMap<K, V>();
    map.put(key1, value1);
    map.put(key2, value2);//from  ww  w . j a va 2 s. c  o m
    return map;
}

From source file:Main.java

public static Map<String, Object> getCarMileType(Integer carInfoSeq, Integer param, String defaultFuel) {
    Map<String, Object> map = getMap();
    map.put("carInfoSeq", carInfoSeq);
    map.put("param", param);
    map.put("carDistance", defaultFuel);
    return map;/*from  w  w w . j  a v  a 2s  .c  om*/
}

From source file:Main.java

public static Map<String, Object> getCarFuelType(Integer carInfoSeq, Integer param, String defaultFuel) {
    Map<String, Object> map = getMap();
    map.put("carInfoSeq", carInfoSeq);
    map.put("param", param);
    map.put("defaultFuel", defaultFuel);
    return map;/* www . ja  va  2  s.  c  om*/
}

From source file:Main.java

public static Map<String, Object> getRegistMsgMap(String telephoneNo, String messageType, String requestTime) {
    Map<String, Object> map = getMap();
    map.put("telephoneNo", telephoneNo);
    map.put("messageType", messageType);
    map.put("requestTime", requestTime);
    return map;/*from w w w  . j  av  a2s.c  o  m*/
}