Feb 21, 2017 array assign interface json typescript Initialize a Typescript Interface with JSON TL;DR: You can initialise a typescript interface using JSON objects. On my quest to load and save objects as JSON, I found that you
Aug 1, 2016 interface java mock observable rx Mock an Observable Interface TL;DR: Use a doAnswer() with a new Answer<Observable<Type>>() if you have to mock observables. Today I wrote my
Feb 14, 2016 android api class client google interface signature GoogleApiClient .connect() Interface or Class TL;DR: * If it's your code, check the version play services (com.google.android.gms:play-services-\*). * If you're using a library,
Oct 19, 2015 expression functional interface java lambda TIL: Lambda Expressions TL;DR: A lambda expression is a shortcut notation to anonymous inner classes containing a single method. Usually, they define implementations for functional interfaces (interfaces
Mar 10, 2015 enum event interface java lof string Use a Java Enum with Strings In my project I wanted to log messages using predefined categories. Traditionally, I do it via classes (if the messages are specific to the functions