Java List Create createBlankSet(String date, List titleList)

Here you can find the source of createBlankSet(String date, List titleList)

Description

create Blank Set

License

Open Source License

Declaration

private static Map createBlankSet(String date, List titleList) 

Method Source Code

//package com.java2s;
/*// w w w  .  ja va 2s  .co  m
 * M2M ServiceFOTA ONM version 1.0
 *
 *  Copyright ? 2014 kt corp. All rights reserved.
 *
 *  This is a proprietary software of kt corp, and you may not use this file except in
 *  compliance with license agreement with kt corp. Any redistribution or use of this
 *  software, with or without modification shall be strictly prohibited without prior written
 *  approval of kt corp, and the copyright notice above does not evidence any actual or
 *  intended publication of such software.
 */

import java.util.HashMap;

import java.util.List;
import java.util.Map;

public class Main {
    private static Map createBlankSet(String date, List titleList) {
        Map result = new HashMap();
        try {
            for (int i = 0; i < titleList.size(); i++) {
                String index = (String) titleList.get(i);
                if ("01_SUMDATE".equals(index)) {
                    result.put(index, date);
                } else {
                    result.put(index, "0");
                }
            }
        } catch (Exception ex) {
        }

        return result;
    }
}

Related

  1. createAndInitializeList(int size, int begin)
  2. createArgumentList(List args)
  3. createArrayFromUsers(List userList)
  4. createArrayList()
  5. createBarrier(List text)
  6. createBVQueryParametersList()
  7. createCategoryName(List names)
  8. createChancePrefixList(List chances)
  9. createClassList(List objects)

    HOME | Copyright © www.java2s.com 2016