com.landawn.abacus.util.function.Runnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abacus-util-all-jdk7 Show documentation
Show all versions of abacus-util-all-jdk7 Show documentation
A general programming library in Java
package com.landawn.abacus.util.function;
import com.landawn.abacus.util.N;
import com.landawn.abacus.util.Try;
public interface Runnable extends java.lang.Runnable, Try.Runnable {
@Override
void run();
public static Runnable of(final Runnable runnable) {
N.requireNonNull(runnable);
return runnable;
}
public static Runnable create(final Callable callable) {
N.requireNonNull(callable);
return new Runnable() {
@Override
public void run() {
callable.call();
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy