Class Util
java.lang.Object
xyz.jpenilla.gremlin.runtime.util.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLclasspathUrl(Class<?> cls) static PathmkParentDirs(Path path) Attempts to create the parent directories ofpathif necessary.static <X extends Throwable>
RuntimeExceptionstatic voidshutdownExecutor(ExecutorService service, TimeUnit timeoutUnit, long timeoutLength) static <T extends Comparable<T>>
List<T>sorted(Collection<T> list)
-
Method Details
-
shutdownExecutor
public static void shutdownExecutor(ExecutorService service, TimeUnit timeoutUnit, long timeoutLength) -
mkParentDirs
Attempts to create the parent directories ofpathif necessary.Returns
pathwhen successful.- Parameters:
path- path- Returns:
path- Throws:
IOException- on I/O error
-
rethrow
- Throws:
X extends Throwable
-
classpathUrl
-
sorted
-