List of usage examples for java.util LinkedHashMap LinkedHashMap
public LinkedHashMap(Map<? extends K, ? extends V> m)
From source file:jef.jre5support.Headers.java
public Headers(int i, boolean ignorCase) { map = new LinkedHashMap<String, List<String>>(i); this.ignorCase = ignorCase; }
From source file:com.janrain.backplane.server.BackplaneMessage.java
public BackplaneMessage(String bus, String channel, int defaultExpireSeconds, int maxExpireSeconds, Map<String, Object> data) throws BackplaneServerException, SimpleDBException { Map<String, String> d = new LinkedHashMap<String, String>(toStringMap(data)); String id = generateMessageId(new Date()); d.put(Field.ID.getFieldName(), id); d.put(Field.BUS.getFieldName(), bus); d.put(Field.CHANNEL_NAME.getFieldName(), channel); d.put(Field.PAYLOAD.getFieldName(), extractFieldValueAsJsonString(Field.PAYLOAD, data)); Object sticky = data.get(Field.STICKY.getFieldName()); d.put(Field.STICKY.getFieldName(), sticky != null ? sticky.toString() : Boolean.FALSE.toString()); d.put(Field.EXPIRE.getFieldName(), DateTimeUtils.processExpireTime(sticky, data.get(Field.EXPIRE.getFieldName()), defaultExpireSeconds, maxExpireSeconds)); super.init(id, d); }
From source file:org.opencb.commons.datastore.core.ObjectMap.java
public ObjectMap(int size) { objectMap = new LinkedHashMap<>(size); }