de.aitools.ie.languagedetection.builder.benchmark
Class Tools

java.lang.Object
  extended by de.aitools.ie.languagedetection.builder.benchmark.Tools

public class Tools
extends java.lang.Object


Constructor Summary
Tools()
           
 
Method Summary
static
<S extends java.lang.Comparable<? super S>,T>
java.util.LinkedHashMap<S,T>
sortMap(java.util.Map<S,T> map)
          sort map
static
<T extends java.lang.Comparable<? super T>>
void
sortSet(java.util.LinkedHashSet<T> set)
          sort set
static
<R extends java.lang.Comparable<? super R>,C extends java.lang.Comparable<? super C>,V>
java.util.Map<C,java.util.Map<R,V>>
swapRowsColumns(java.util.Map<R,java.util.Map<C,V>> table)
           
static
<R extends java.lang.Comparable<? super R>,C extends java.lang.Comparable<? super C>,V>
void
tableToCSV(java.util.Map<R,java.util.Map<C,V>> table, java.io.File f)
          Map>
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

tableToCSV

public static <R extends java.lang.Comparable<? super R>,C extends java.lang.Comparable<? super C>,V> void tableToCSV(java.util.Map<R,java.util.Map<C,V>> table,
                                                                                                                      java.io.File f)
                       throws java.io.IOException
Map>

Type Parameters:
R -
V -
Parameters:
table -
f -
Throws:
java.io.IOException

swapRowsColumns

public static <R extends java.lang.Comparable<? super R>,C extends java.lang.Comparable<? super C>,V> java.util.Map<C,java.util.Map<R,V>> swapRowsColumns(java.util.Map<R,java.util.Map<C,V>> table)
                                                                                                                                           throws java.io.IOException
Throws:
java.io.IOException

sortMap

public static <S extends java.lang.Comparable<? super S>,T> java.util.LinkedHashMap<S,T> sortMap(java.util.Map<S,T> map)
sort map


sortSet

public static <T extends java.lang.Comparable<? super T>> void sortSet(java.util.LinkedHashSet<T> set)
sort set