/*******************************************************************************
- * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others
+ * Copyright (c) 2011, 2013 Ericsson, Ecole Polytechnique de Montreal and others
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
package org.eclipse.linuxtools.ctf.core.event.types;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.ListIterator;
+import java.util.Map;
import org.eclipse.linuxtools.ctf.core.event.io.BitBuffer;
// ------------------------------------------------------------------------
private final StructDeclaration declaration;
- private final HashMap<String, Definition> definitions = new HashMap<String, Definition>();
+ private final Map<String, Definition> definitions = new LinkedHashMap<String, Definition>();
// ------------------------------------------------------------------------
// Constructors
/**
* @return The definitions of all the fields
+ * @since 2.0
*/
- public HashMap<String, Definition> getDefinitions() {
+ public Map<String, Definition> getDefinitions() {
return definitions;
}