List of usage examples for java.util LinkedHashMap LinkedHashMap
public LinkedHashMap()
From source file:gov.nih.nci.cabig.caaers.web.admin.MandatoryFieldsCommand.java
public void initializeMandatoryFieldMap() { mandatoryFieldMap = new LinkedHashMap<String, Integer>(); if (CollectionUtils.isNotEmpty(mandatoryFields)) { String path;/*from ww w . j a v a 2 s . c o m*/ int i = 0; for (CaaersFieldDefinition cfd : mandatoryFields) { path = cfd.getFieldPath(); mandatoryFieldMap.put(path, i); i++; } } }
From source file:com.xylocore.cassandra.query.PagedQueryBuilder.java
private PagedQueryBuilder() { session = null;//from w w w . j a v a 2s. c om firstQuery = null; nextQueries = new ArrayList<>(); keyColumnNames = new LinkedHashMap<>(); executor(null); }
From source file:io.spring.initializr.web.mapper.DependencyMetadataV21JsonMapper.java
private static Map<String, Object> mapRepository(Repository repo) { Map<String, Object> result = new LinkedHashMap<>(); result.put("name", repo.getName()); result.put("url", repo.getUrl()); result.put("snapshotEnabled", repo.isSnapshotsEnabled()); return result; }
From source file:net.openid.appauth.AdditionalParamsProcessor.java
static Map<String, String> extractAdditionalParams(JSONObject json, Set<String> builtInParams) throws JSONException { Map<String, String> additionalParams = new LinkedHashMap<>(); Iterator<String> keysIter = json.keys(); while (keysIter.hasNext()) { String key = keysIter.next(); if (!builtInParams.contains(key)) { additionalParams.put(key, json.get(key).toString()); }/*w w w. ja va 2 s .co m*/ } return additionalParams; }
From source file:com.mirth.connect.client.ui.FunctionList.java
/** * Constructor to initialize the panel with the option to enable/disable the filter component * /*from w ww .j a v a2s .c o m*/ * @param context * @param enableFilter * TRUE the panel should be initialized with the filter component */ public FunctionList(ContextType contextType, boolean enableFilter) { this.contextType = contextType; this.enableFilter = enableFilter; initComponents(); panels = new LinkedHashMap<String, JPanel>(); setup(); enableFilter(enableFilter); }
From source file:controllers.ColorGroupController.java
@ModelAttribute public void setInfo(Map<String, Object> model) { Map<String, Object> res = new LinkedHashMap(); for (ColorGroup cg : colorGroupService.getColorGroups()) { res.put(StringAdapter.getString(cg.getOldGroupId()), cg.getTitle()); }/* w w w. ja va2 s . c o m*/ model.put("groupDict", res); }
From source file:com.github.nethad.clustermeister.provisioning.jppf.DriverLoadBalancing.java
public Map<String, String> getLoadBalancingConfigValues() { if (configuration == null) { return Collections.EMPTY_MAP; }/*w w w . ja v a 2s .co m*/ LinkedHashMap<String, String> values = new LinkedHashMap<String, String>(); algorithm = configuration.getString(ALGORITHM); strategy = configuration.getString(STRATEGY); strategies = getStrategies(); if (isBrokenConfiguration()) { return Collections.EMPTY_MAP; } values.put(JPPFConstants.LOAD_BALANCING_ALGORITHM, algorithm); values.put(JPPFConstants.LOAD_BALANCING_STRATEGY, "cmprofile"); Map<String, String> strategyValues = strategies.get(strategy); for (Map.Entry<String, String> entry : strategyValues.entrySet()) { values.put("strategy.cmprofile." + entry.getKey(), entry.getValue()); } return values; }
From source file:com.saggezza.litetracker.track.PayloadMap.java
/** * Create an empty PayloadMap with a timestamp. *//*w ww .j av a 2s . c o m*/ public PayloadMap() { this.parameters = new LinkedHashMap<String, String>(); setTimestamp(); }
From source file:com.htmlhifive.pitalium.core.selenium.PtlCapabilitiesTest.java
() throws Exception { Map<String, Object> map = new LinkedHashMap<String, Object>(); map.put("platform", "WINDOWS"); map.put("platformName", "hoge"); PtlCapabilities capabilities = new PtlCapabilities(map); assertThat(capabilities.getPlatformName(), is("WINDOWS")); }
From source file:com.example.journal.env.JournalEnvironmentPostProcessor.java
@Override public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { Map<String, Object> map = new LinkedHashMap<>(); contributeDefaults(map, new ClassPathResource("journal.yml")); map.put("spring.cloud.stream.bindings." + JournalSink.INPUT + ".content-type", "application/x-java-object;type=" + JournalEntry.class.getName()); addOrReplace(environment.getPropertySources(), map); }