List<Socket>? = null val handler = Handler() val handlerCallbacks = ArrayList<Runnable>() public class SocketsActivity extends Activity { private List<Socket> sockets; private final Handler handler = new Handler(); private final ArrayList<Runnable> handlerCallbacks = new ArrayList<>() ;
NuonWebService.NuonApi , val filterController : FilterController , val config: Config, val favoritesController : FavoritesController , val followedController : FollowedController) {
very modern language with lambdas, higher-order functions, ranges. Moves away from deprecated class inheritance. 3. Setters and getters under the hood. 4. Null references are under control with type system (?, !, !!) 5. Makes your life comfortable with extension functions! 6. Fully compatible and almost transparent with existing Java code. You can rewrite class by class! 7. You can always fall back to pure Java in case of implementation problems or compile problems!