diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2019-11-23 20:37:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 20:37:48 +0100 |
commit | 2cb44b7d1861be2535ef6b2655af211b6a095402 (patch) | |
tree | 8cab6e7fbd17a566916521fdb04df50505372abd /src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java | |
parent | 22f6a3082d5e9698e3be4208ca68cd6724239fd0 (diff) | |
parent | af0519c958a72ee3e2432c0089009ec4f905a0f5 (diff) |
Merge pull request #29 from m-chrzan/add_data_viz
Add data viz
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/model/AttributesMap.java | 3 |
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) |