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> getFeedback(String feedbackContent, String feedbackId, Integer carOwnerSeq) {
    Map<String, Object> map = getMap();
    map.put("feedbackContent", feedbackContent);
    map.put("feedbackId", feedbackId);
    map.put("carOwnerSeq", carOwnerSeq);
    return map;//from w  w w.j a  v a2s  .c o m
}

From source file:com.netflix.spinnaker.halyard.Main.java

private static Map<String, Object> buildDefaults() {
    Map<String, String> defaults = new HashMap<>();
    defaults.put("netflix.environment", "test");
    defaults.put("netflix.account", "${netflix.environment}");
    defaults.put("netflix.stack", "test");
    defaults.put("spring.config.node", "${user.home}/.spinnaker/");
    defaults.put("spring.application.name", "halyard");
    defaults.put("spring.config.name", "spinnaker,${spring.application.name}");
    defaults.put("spring.profiles.active", "${netflix.environment},local");
    return Collections.unmodifiableMap(defaults);
}

From source file:org.my.spring.batch.java.config.demo.Main.java

private static JobParameters parseJobParameters(String[] args) {
    Map<String, JobParameter> parameters = new HashMap<>();
    parameters.put("inputFile", new JobParameter("/var/opt/data/sample-data.csv"));
    parameters.put("k1", new JobParameter(new Date()));
    return new JobParameters(parameters);
}

From source file:sample.TimeStamp.java

private static AppDeploymentRequest createAppDeploymentRequest(String app) {
    MavenResource resource = new MavenResource.Builder().artifactId(app)
            .groupId("org.springframework.cloud.task.app").version("1.0.0.BUILD-SNAPSHOT").build();
    Map<String, String> properties = new HashMap<>();
    properties.put("server.port", "0");
    AppDefinition definition = new AppDefinition(app, properties);
    AppDeploymentRequest request = new AppDeploymentRequest(definition, resource);
    return request;
}

From source file:Main.java

public static Map<String, Object> getForgetPwdMap(String ownerTel, String mobileValidatecode,
        String userPassword) {//from  ww w. j  a va 2  s .c o  m
    Map<String, Object> map = getMap();
    map.put("ownerTel", ownerTel);
    map.put("userPassword", userPassword);
    map.put("mobileValidatecode", mobileValidatecode);
    return map;
}

From source file:Main.java

private static Map<String, Object> getMap(Integer status, String message, Object data) {
    Map<String, Object> map = new HashMap<>();
    map.put("status", status);
    map.put("message", message);
    map.put("data", data);
    return map;//from w ww.j  a v  a 2 s  .co m
}

From source file:Main.java

public static Map<String, Object> getCarOwnerOwnerTel(Integer carOwnerSeq, String ownerTel,
        String mobileValidatecode) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("ownerTel", ownerTel);
    map.put("mobileValidatecode", mobileValidatecode);
    return map;// ww w  .  j a  v  a 2s  .  com
}

From source file:Main.java

public static Map initParamsMap() {
    Map<String, Object> params = new TreeMap<>();
    params.put("timespan", System.currentTimeMillis() / 1000L);

    return params;
}

From source file:Main.java

public static Map<String, Object> getSOSMap(String telephoneNo, String messageType, String requestTime,
        Integer virityWay) {/*from w  ww.j a  v  a 2 s  .  co  m*/
    Map<String, Object> map = getMap();
    map.put("telephoneNo", telephoneNo);
    map.put("messageType", messageType);
    map.put("requestTime", requestTime);
    map.put("virityWay", virityWay);
    return map;
}

From source file:Main.java

public static Map<String, Object> creatRefund(Integer carOwnerSeq, Integer carEndorsementSeq,
        Integer endorsementStatus, Integer virtualGoodsOrderSeq) {
    Map<String, Object> map = getMap();
    map.put("carOwnerSeq", carOwnerSeq);
    map.put("carEndorsementSeq", carEndorsementSeq);
    map.put("endorsementStatus", endorsementStatus);
    map.put("virtualGoodsOrderSeq", virtualGoodsOrderSeq);
    return map;/*from   www .  j  a v  a2s.c  o m*/
}