from Pocket http://ift.tt/1o3kOmE
While implementing single method interfaces – often to be passed as a parameter to another function as callbacks – we often end up writing an anonymous class. Considering what we want to achieve, we may come up with something that is unnecessarily verbose.