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
package io.hudepohl.custom_thread_sample; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.os.Message; | |
import androidx.annotation.MainThread; | |
import androidx.annotation.WorkerThread; | |
import org.jetbrains.annotations.NotNull; |
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
package io.hudepohl | |
import com.google.gson.Gson | |
import com.google.gson.annotations.SerializedName | |
import com.google.gson.reflect.TypeToken | |
import org.junit.Assert.assertTrue | |
import org.junit.Test | |
private const val testJson = | |
""" |
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
package io.hudepohl | |
import java.lang.StringBuilder | |
class Html { | |
private val value: StringBuilder = StringBuilder() | |
private fun add(text: String) = value.append(text) | |
override fun toString(): String = value.toString() |
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
/** | |
* Created by trent on 9/18/17. | |
*/ | |
public class HelloWorldGist { | |
/** | |
* Concatenate a URL and an endpoint. | |
* | |
* In some cases, a base URL ends with '/' and an endpoint starts with '/', so |