All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static long |
cputime() |
static <L,V> V |
dfs(Tree<L> tree,
Util.BottomUpTreeVisitor<L,V> visitor) |
static <V> void |
forEachNode(Tree<V> tree,
Consumer<V> visitor) |
static String |
formatTime(long timeInNs) |
static String |
formatTimeSince(long start) |
static String |
gensym(String prefix) |
static String |
getCurrentDateAndTimeAsString() |
static String |
getFilenameExtension(String fileName) |
static String |
getStackTrace(Throwable ex) |
static <E,F> com.google.common.base.Function<E,F> |
gfun(Function<E,F> javafun) |
static <E,F> com.google.common.collect.ListMultimap<E,F> |
groupBy(Iterable<F> elements,
Function<F,E> by) |
static Tree<String> |
makeBinaryTree(String symbol,
List<String> leaves) |
static int[] |
makeIntArray(int n,
IntUnaryOperator sup) |
static <E> List<E> |
makeList(int n,
IntFunction<E> sup) |
static <E> List<E> |
makeList(int n,
Supplier<E> sup) |
static Tree<String> |
makeTreeWithArities(Tree<String> tree) |
static int[] |
mapIntArray(int[] array,
IntUnaryOperator fn) |
static <I> IntList |
mapToIntList(Iterable<I> values,
ToIntFunction<I> fn) |
static <I,O> List<O> |
mapToList(Iterable<I> values,
Function<I,O> fn) |
static <I,O> Set<O> |
mapToSet(Iterable<I> values,
Function<I,O> fn) |
static <E,Up> Tree<Up> |
mapTree(Tree<E> tree,
com.google.common.base.Function<E,Up> fn) |
static double |
mult(DoubleStream stream) |
static long |
parseNumberWithPrefix(String str) |
static void |
printToFile(String filename,
String content) |
static String |
repeat(String s,
int repetitions) |
static int |
sampleMultinomial(int[] values,
IntToDoubleFunction prob) |
static int |
sampleMultinomial(int[] values,
IntToDoubleFunction prob,
double totalProb) |
static <T> Stream<T> |
stream(Iterable<T> iterable) |
static String |
stripExtension(String filename) |