Operator Wiki : Link
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 java.io.Serializable | |
import java.lang.reflect.* | |
import java.lang.reflect.Array as ArrayType | |
import java.util.* | |
val EMPTY_TYPE_ARRAY: kotlin.Array<Type> = emptyArray() | |
/** | |
* Returns a new parameterized type, applying {@code typeArguments} to | |
* {@code rawType} and enclosed by {@code ownerType}. |
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
// for any errors that should be handled before being handed off to RxJava. | |
// In other words global error logic. | |
// An example might be 401 when not logging in | |
import okhttp3.Interceptor | |
import okhttp3.Response | |
class ErrorInterceptor: Interceptor { | |
override fun intercept(chain: Interceptor.Chain?): Response { |
This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.
- Call by value: evaluates the function arguments before calling the function
- Call by name: evaluates the function first, and then evaluates the arguments if need be
def example = 2 // evaluated when called
val example = 2 // evaluated immediately
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |