m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/model
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <mag.grodzinska@gmail.com>2019-11-23 20:37:48 +0100
committerGitHub <noreply@github.com>2019-11-23 20:37:48 +0100
commit2cb44b7d1861be2535ef6b2655af211b6a095402 (patch)
tree8cab6e7fbd17a566916521fdb04df50505372abd /src/main/java/pl/edu/mimuw/cloudatlas/model
parent22f6a3082d5e9698e3be4208ca68cd6724239fd0 (diff)
parentaf0519c958a72ee3e2432c0089009ec4f905a0f5 (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')
-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)