emujava.util.concurrent.CompletableFutureUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
package emujava.util.concurrent;
public class CompletableFutureUtils {
/**
* Ensures that an object reference passed as a parameter to the calling method is not null.
*/
public static T checkNotNull(T reference) {
try {
checkCriticalNotNull(reference);
}
catch(Exception e) {
throw new AssertionError(e);
}
return reference;
}
public static T checkCriticalNotNull(T reference) {
if(reference == null) {
throw new NullPointerException();
}
return reference;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy