Added Runnables.NOOP.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2496 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-12-08 20:18:13 +00:00
parent 8146d78a39
commit 0d05720af9
@@ -31,6 +31,13 @@ import static com.samskivert.Log.log;
*/
public class Runnables
{
/** A runnable that does nothing. Useful for use as the default value for optional callbacks. */
public static Runnable NOOP = new Runnable() {
public void run () {
// noop!
}
};
/**
* Creates a runnable that invokes the specified method on the specified instance via
* reflection.