On 16/05/14 07:00, Gerd Petermann wrote:
I'd like to have a few more classes in it, so I've attached a small program
that uses all classes which seem to be useful in splitter or mkgmap.
I had to alter the program so that it actually used the classes (attached).
I've now created minimal fastutil jars for mkgmap+splitter and for
UseFastutil
They can downloaded by changing the version to 6.5.15-mkg.1 and
6.5.15-mkg.1b respectively.
mkgmap+splitter:
<dependency org="it.unimi.dsi" name="fastutil"
rev="6.5.15-mkg.1"
conf="compile->default(*)"/>
UseFastutil:
<dependency org="it.unimi.dsi" name="fastutil"
rev="6.5.15-mkg.1b"
conf="compile->default(*)"/>
..Steve
package util;
import it.unimi.dsi.fastutil.ints.Int2IntLinkedOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectAVLTreeMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.longs.Long2ObjectAVLTreeMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import it.unimi.dsi.fastutil.shorts.ShortArrayList;
/**
* @author GerdP
*/
public class UseFastutil{
public static void main(String[] args) {
UseFastutil uf = new UseFastutil();
uf.doit();
}
public void doit() {
String f = shortArrayList.toString() + intArrayList.toString() + longArrayList.toString()
+ int2intOpenHashMap.toString() + int2ObjectOpenHashMap.toString()
+ long2ObjectOpenHashMap.toString()
+ int2intLinkedOpenHashMap.toString()
+ int2ObjectLinkedOpenHashMap.toString()
+ long2ObjectLinkedOpenHashMap.toString()
+ int2ObjectAVLTreeMap.toString()
+ long2ObjectAVLTreeMap.toString();
System.out.println(f);
}
ShortArrayList shortArrayList;
IntArrayList intArrayList;
LongArrayList longArrayList;
Int2IntOpenHashMap int2intOpenHashMap;
Int2ObjectOpenHashMap<Short> int2ObjectOpenHashMap;
Long2ObjectOpenHashMap<Short> long2ObjectOpenHashMap;
Int2IntLinkedOpenHashMap int2intLinkedOpenHashMap;
Int2ObjectLinkedOpenHashMap<Short> int2ObjectLinkedOpenHashMap;
Long2ObjectLinkedOpenHashMap<Short> long2ObjectLinkedOpenHashMap;
Int2ObjectAVLTreeMap<Short> int2ObjectAVLTreeMap;
Long2ObjectAVLTreeMap<Short> long2ObjectAVLTreeMap;
}
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev