-
-
Save muratcanbur/384474d24cbe333ed5b1 to your computer and use it in GitHub Desktop.
This file contains 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
import com.squareup.otto.Bus; | |
/** | |
* Created by muratcanbur on 23/06/15. | |
*/ | |
public class BusProvider { | |
private static final Bus BUS = new Bus(); | |
public static Bus getInstance() { | |
return BUS; | |
} | |
// no need to create instance | |
private BusProvider() { | |
// No instances. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment