Created
February 23, 2012 14:08
-
-
Save youtalk/1893013 to your computer and use it in GitHub Desktop.
Singleton pattern for implementing null Runnable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.youtalk; | |
public enum NullRunnable implements Runnable { | |
INSTANCE; | |
@Override | |
public void run() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment