@@ -0,0 +1,2142 @@
+/*%0ACopyright (c) 2014, Colorado State University%0AAll rights reserved.%0A%0ARedistribution and use in source and binary forms, with or without modification,%0Aare permitted provided that the following conditions are met:%0A%0A1. Redistributions of source code must retain the above copyright notice, this%0A   list of conditions and the following disclaimer.%0A2. Redistributions in binary form must reproduce the above copyright notice,%0A   this list of conditions and the following disclaimer in the documentation%0A   and/or other materials provided with the distribution.%0A%0AThis software is provided by the copyright holders and contributors %22as is%22 and%0Aany express or implied warranties, including, but not limited to, the implied%0Awarranties of merchantability and fitness for a particular purpose are%0Adisclaimed. In no event shall the copyright holder or contributors be liable for%0Aany direct, indirect, incidental, special, exemplary, or consequential damages%0A(including, but not limited to, procurement of substitute goods or services;%0Aloss of use, data, or profits; or business interruption) however caused and on%0Aany theory of liability, whether in contract, strict liability, or tort%0A(including negligence or otherwise) arising in any way out of the use of this%0Asoftware, even if advised of the possibility of such damage.%0A*/%0A%0Apackage galileo.serialization;%0A%0Aimport java.util.Collection;%0A%0Aimport galileo.serialization.ByteSerializable;%0A%0A/**%0A * Defines a very basic serializable map that consists of Key, Value pairs%0A * wherein the Key can be ascertained by the Value directly.%0A *%0A * @author malensek%0A */%0Apublic interface SimpleMap%3CK, V extends ByteSerializable%3E %7B%0A%0A    /**%0A     * Places an item in this data structure.%0A     */%0A    public void put(V item);%0A%0A    /**%0A     * Retrieves an item from this data structure.%0A     *%0A     * @param key Key of the item to retrieve; for instance, the item's name.%0A     */%0A    public V get(K key);%0A%0A%0A    /**%0A     * Retrieves all the values contained in this data structure.%0A     */%0A    public Collection%3CV%3E values();%0A%0A    /**%0A     * Reports the current size of the data structure.%0A     */%0A    public int size();%0A%7D%0A

Move SimpleMap to serialization package