List of usage examples for java.util LinkedHashMap LinkedHashMap
public LinkedHashMap()
From source file:com.tussle.collision.StageElementComponent.java
public StageElementComponent() { surfaces = new LinkedHashMap<>(); }
From source file:cz.hobrasoft.pdfmu.PdfmuUtils.java
public static <K, V> Map<K, V> sortedMap(Map.Entry<K, V>... entries) { Map<K, V> result = new LinkedHashMap<>(); for (Map.Entry<K, V> entry : entries) { K key = entry.getKey();// www.ja v a2 s . co m V value = entry.getValue(); result.put(key, value); } return result; }
From source file:act.reports.controller.NoAbandonedVehicleControllerHelper.java
public List<Map<String, String>> convertNoAbandonedVehicleDetailsListAsExcelFormat( NoAbandonedVehicleDetailsList noabandonedDetailsList) { logger.info("In convertNoAbandonedVehicleDetailsListAsExcelFormat(...) ..."); List<Map<String, String>> excelDetails = new ArrayList<Map<String, String>>(); try {/*from w ww. j a va2 s .c o m*/ for (int i = 0; i < noabandonedDetailsList.getInvoice().size(); i++) { Map<String, String> excelExpireData = new LinkedHashMap<String, String>(); excelExpireData.put("invoice", (noabandonedDetailsList.getInvoice().get(i) != null) ? noabandonedDetailsList.getInvoice().get(i) : ""); excelExpireData.put("serviceCalldate", (noabandonedDetailsList.getServiceCallDate().get(i) != null) ? noabandonedDetailsList.getServiceCallDate().get(i) : ""); excelExpireData.put("account", (noabandonedDetailsList.getAccount().get(i) != null) ? noabandonedDetailsList.getAccount().get(i) : ""); excelExpireData.put("reason", (noabandonedDetailsList.getReason().get(i) != null) ? noabandonedDetailsList.getReason().get(i) : ""); excelExpireData.put("year", (noabandonedDetailsList.getYear().get(i) != null) ? noabandonedDetailsList.getYear().get(i) : ""); excelExpireData.put("make", (noabandonedDetailsList.getMake().get(i) != null) ? noabandonedDetailsList.getMake().get(i) : ""); excelExpireData.put("model", (noabandonedDetailsList.getModel().get(i) != null) ? noabandonedDetailsList.getModel().get(i) : ""); excelExpireData.put("vin", (noabandonedDetailsList.getVin().get(i) != null) ? noabandonedDetailsList.getVin().get(i) : ""); excelExpireData.put("licensePlate", (noabandonedDetailsList.getLicensePlate().get(i) != null) ? noabandonedDetailsList.getLicensePlate().get(i) : ""); excelExpireData.put("daysInStorage", (noabandonedDetailsList.getDaysInStorage().get(i) != null) ? noabandonedDetailsList.getDaysInStorage().get(i) : ""); excelExpireData.put("lotlocation", (noabandonedDetailsList.getLotLocation().get(i) != null) ? noabandonedDetailsList.getLotLocation().get(i) : ""); excelDetails.add(excelExpireData); } } catch (Exception e) { logger.error(e); e.printStackTrace(); } return excelDetails; }
From source file:com.thoughtworks.go.api.representers.ConfigurationPropertyRepresenter.java
public static void toJSON(OutputWriter writer, ConfigurationProperty configurationProperty) { writer.add("key", configurationProperty.getKey().getName()); if (!configurationProperty.isSecure() && !isBlank(configurationProperty.getConfigValue())) { writer.add("value", configurationProperty.getConfigurationValue().getValue()); }//from www . ja va 2 s . co m if (configurationProperty.isSecure() && !isBlank(configurationProperty.getEncryptedValue())) { writer.add("encrypted_value", configurationProperty.getEncryptedValue()); } if (configurationProperty.hasErrors()) { writer.addChild("errors", errorWriter -> new ErrorGetter(new LinkedHashMap<String, String>() { { put("encryptedValue", "encrypted_value"); put("configurationValue", "configuration_value"); put("configurationKey", "configuration_key"); } }).toJSON(errorWriter, configurationProperty)); } }
From source file:com.genentech.application.property.SDFCalculate.java
private static Map<String, String> createMap() { Map<String, String> result = new LinkedHashMap<String, String>(); result.put("all", "all properties"); result.put("CNS_MPO", "CNS_MPO score, requires cLogP, pKa_MB, cgLogD7.4 "); result.put("Charge", "ionized by MoKa at pH7.4"); result.put("cIC50atLE0.3", "calculated IC50 at LE 0.3"); result.put("cIC50atLE0.35", "calculated IC50 at LE 0.35"); result.put("cIC50atLE0.4", "calculated IC50 at LE 0.4"); result.put("Heavy_Atoms", "Num of heavy atoms"); result.put("H_polar", "ionized by Moka at pH7.4"); result.put("MW", "neutralized by OpenEye's OEchem"); result.put("N+O", "number of N + number of O"); result.put("NH+OH", "number of NH + OH, NH2 counts as 2"); result.put("Rings", "number of ring systems"); result.put("RotBonds", "number of ratatable bonds"); result.put("RO5", " number of Lipinski's rule of five violations"); result.put("TPSA", "topological polar surface area"); result.put("AromaticFraction", "number of aromatic atoms / number of heavy atoms"); result.put("CarboAromaticFraction", "number of aromatic carbon atoms / number of heavy atoms"); result.put("AromaticRings", "number of 5, 6, or 7 member aromatic rings"); result.put("CarboAromaticRings", "number of 5, 6, or 7 member carboaromatic rings"); result.put("HeteroAromaticRings", "number of 5, 6, or 7 member heteroaromatic rings"); result.put("AliphaticRings", "number of 3,4,5,6,7,or 8 member aliphatic rings "); result.put("CarboAliphaticRings", "number of 3,4,5,6,7,or 8 member carboaliphatic rings "); result.put("HeteroAliphaticRings", "number of 3,4,5,6,7,or 8 member heteroaliphatic rings "); result.put("Solubility_Index", "cgLogD7.4 + AromaticRings"); result.put("Csp3", "number of sp3 carbons"); result.put("Csp3Fraction", "Fraction of sp3 carbons"); result.put("NonSp3Fraction", "fraction of non-sp3 atoms"); return Collections.unmodifiableMap(result); }
From source file:com.mirth.connect.connectors.file.SftpSchemeProperties.java
public SftpSchemeProperties() { passwordAuth = true;//from ww w . j av a2 s. c o m keyAuth = false; keyFile = ""; passPhrase = ""; hostKeyChecking = "ask"; knownHostsFile = ""; configurationSettings = new LinkedHashMap<String, String>(); }
From source file:guru.bubl.module.model.validator.UserValidator.java
private static Map<String, String> validateUserName(String username) { Map<String, String> errors = new LinkedHashMap<>(); if (isBlank(username)) { errors.put(UserJson.USER_NAME, MANDATORY_USER_NAME); return errors; }//from w w w . ja va 2 s . c o m if (username.length() > USER_NAME_MAX_LENGTH) { errors.put(UserJson.USER_NAME, USER_NAME_TOO_LONG); return errors; } if (!isUserNameValid(username)) { errors.put(UserJson.USER_NAME, INVALID_USER_NAME); } return errors; }
From source file:io.swagger.inflector.examples.models.ObjectExample.java
public void put(String key, Example value) { if (values == null) { values = new LinkedHashMap<String, Example>(); }// w ww .j a v a 2 s . c om values.put(key, value); }
From source file:jp.primecloud.auto.sdk.client.component.StopComponent.java
public void execute(Long componentNo, List<Long> instanceNos, Boolean isStopInstance) { Map<String, String> parameters = new LinkedHashMap<String, String>(); parameters.put("ComponentNo", componentNo.toString()); parameters.put("InstanceNos", StringUtils.join(instanceNos, ",")); if (isStopInstance != null) { parameters.put("IsStopInstance", isStopInstance.toString()); }// w w w . ja v a 2 s . c o m requester.execute("/StopComponent", parameters); }
From source file:com.pimp.companionforband.utils.jsontocsv.parser.JsonFlattener.java
public LinkedHashMap<String, String> parse(JSONObject jsonObject) { LinkedHashMap<String, String> flatJson = new LinkedHashMap<>(); flatten(jsonObject, flatJson, ""); return flatJson; }