This file contains hidden or 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 com.facebook | |
object AccessTokenCreator { | |
fun createToken(grantedPermissions: Collection<String?>?): AccessToken? { | |
return AccessToken("token", "appId", "userId", grantedPermissions, | |
ArrayList<String>(), null, AccessTokenSource.WEB_VIEW, null, null, null) | |
} | |
} |
This file contains hidden or 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.math.BigDecimal | |
import java.text.SimpleDateFormat | |
import java.util.* | |
abstract class Benchmark(internal val name: String) { | |
@Throws(Throwable::class) | |
internal abstract fun run(iterations: Int) | |
private fun time(): BigDecimal { |
This file contains hidden or 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 com.google.gson.TypeAdapter | |
import com.google.gson.stream.JsonReader | |
import com.google.gson.stream.JsonToken | |
import com.google.gson.stream.JsonWriter | |
import java.io.IOException | |
class MutableListTypeAdapter<T>(private val delegate: TypeAdapter<MutableList<T>>?) : TypeAdapter<MutableList<T>>() { | |
@Throws(IOException::class) | |
override fun write(out: JsonWriter?, value: MutableList<T>?) { |