Package com.jgalgo
Class JGAlgoConfig
- java.lang.Object
-
- com.jgalgo.JGAlgoConfig
-
public class JGAlgoConfig extends Object
A global configuration class.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <O> Supplier<O>
getOption(String key)
Get a supplier of an option value.static void
setParallelByDefault(boolean enable)
Enable/disable default parallel computations in all algorithms.
-
-
-
Method Detail
-
setParallelByDefault
public static void setParallelByDefault(boolean enable)
Enable/disable default parallel computations in all algorithms.- Parameters:
enable
- iftrue
, some algorithm will use parallel computations by default
-
getOption
public static <O> Supplier<O> getOption(String key)
Get a supplier of an option value.Internal use only; do not use this method directly.
- Type Parameters:
O
- the option value type- Parameters:
key
- the option key- Returns:
- supplier that can be used multiple times to retrieve the most updated option value
-
-