m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2019-11-22 20:45:18 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2019-11-22 20:45:18 +0100
commit2f0d6c452b2600aae00297dc92ff77173586e3c9 (patch)
treefe91c6cf26eed0a77c32b1461be2d5f59215469d /src/main/java/pl/edu
parent137c4b5ca7ec1a384e053ec3460a913d2c8e352a (diff)
Make AttributesMap a LinkedHashMap for ease of handling
Diffstat (limited to 'src/main/java/pl/edu')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java b/src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java
index c74c1df..3391417 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java
@@ -27,6 +27,7 @@ package pl.edu.mimuw.cloudatlas.model;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
@@ -34,7 +35,7 @@ import java.util.Map.Entry;
* Represents a map from <code>Attribute</code> to <code>Value</code>. It cannot contain duplicate keys.
*/
public class AttributesMap implements Iterable<Entry<Attribute, Value>>, Cloneable, Serializable {
- private Map<Attribute, Value> map = new HashMap<Attribute, Value>();
+ private Map<Attribute, Value> map = new LinkedHashMap<Attribute, Value>();
private void checkNulls(Attribute attribute, Value value) {
if(attribute == null)