Package org.opencastproject.util.data
Class Prelude
java.lang.Object
org.opencastproject.util.data.Prelude
The prelude contains general purpose functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleansleep(long ms) Sleep for a while.static <A> AJava is not able to determine the exhaustiveness of a match.
-
Method Details
-
unexhaustiveMatch
public static <A> A unexhaustiveMatch()Java is not able to determine the exhaustiveness of a match. Use this function to throw a defined error and to improve readability. -
sleep
public static boolean sleep(long ms) Sleep for a while. Returns false if interrupted.
-