List of usage examples for java.util LinkedHashMap LinkedHashMap
public LinkedHashMap()
From source file:io.spring.initializr.actuate.info.DependencyRangesInfoContributor.java
@Override public void contribute(Info.Builder builder) { Map<String, Object> details = new LinkedHashMap<>(); this.metadataProvider.get().getDependencies().getAll().forEach((d) -> { if (d.getBom() == null) { contribute(details, d);//from w w w. j a v a 2 s . c om } }); if (!details.isEmpty()) { builder.withDetail("dependency-ranges", details); } }
From source file:com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchProperties.java
@Override public Map<String, DataTypePropertyDescriptor> getPropertyDescriptors() { Map<String, DataTypePropertyDescriptor> properties = new LinkedHashMap<String, DataTypePropertyDescriptor>(); properties.put("splitType", new DataTypePropertyDescriptor(splitType, "Split Batch By", "Select the method for splitting the batch message. This option has no effect unless Process Batch is enabled in the connector.\n\nRecord: Treat each record as a message. Records are separated by the record delimiter.\n\nDelimiter: Use the Batch Delimiter to separate messages.\n\nGrouping Column: Use a column to group multiple records into a single message. When the specified column value changes, this signifies the boundary between messages.\n\nJavaScript: Use JavaScript to split messages.", PropertyEditorType.OPTION, SplitType.values())); properties.put("batchSkipRecords", new DataTypePropertyDescriptor(Integer.toString(batchSkipRecords), "Number of Header Records", "The number of header records to skip. By default, no header records are skipped. This option has no effect unless Process Batch is enabled in the connector.", PropertyEditorType.STRING)); properties.put("batchMessageDelimiter", new DataTypePropertyDescriptor(batchMessageDelimiter, "Batch Delimiter", "The delimiter that separates messages. The batch delimiter may be a sequence of characters. This option has no effect unless Process Batch is enabled in the connector.", PropertyEditorType.STRING)); properties.put("batchMessageDelimiterIncluded", new DataTypePropertyDescriptor( batchMessageDelimiterIncluded, "Include Batch Delimiter", "Check to include the batch delimiter in the message returned by the batch processer. By default, batch delimiters are consumed. This option has no effect unless Process Batch is enabled in the connector.", PropertyEditorType.BOOLEAN)); properties.put("batchGroupingColumn", new DataTypePropertyDescriptor(batchGroupingColumn, "Grouping Column", "The name of the column used to group multiple records into a single message. When the specified column value changes, this signifies the boundary between messages. This option has no effect unless Process Batch is enabled in the connector.", PropertyEditorType.STRING)); properties.put("batchScript", new DataTypePropertyDescriptor(batchScript, "JavaScript", "Enter JavaScript that splits the batch, and returns the next message. This script has access to 'reader', a Java BufferedReader, to read the incoming data stream. The script must return a string containing the next message, or a null/empty string to indicate end of input. This option has no effect unless Process Batch is enabled in the connector.", PropertyEditorType.JAVASCRIPT)); return properties; }
From source file:com.ec2box.common.util.AppConfig.java
/** * gets the property from config and returns map of name / value pairs * * @param name property name// ww w. ja va 2s . com * @return configuration property */ public static Map<String, String> getMapProperties(String name) { String values = prop.getString(name); Map<String, String> map = new LinkedHashMap<>(); for (String set : values.split(";")) { String key = set.split(",")[0]; String val = set.split(",")[1]; map.put(key, val); } return map; }
From source file:org.hobsoft.contacts.server.repository.FakeContactRepository.java
public FakeContactRepository() { contactsById = new LinkedHashMap<>(); nextId = 1; }