android-components / mozilla.components.service.fretboard / ExperimentPayload

ExperimentPayload

class ExperimentPayload (source)

Class which represents an experiment associated data

Constructors

Name Summary
<init> ExperimentPayload()
Class which represents an experiment associated data

Functions

Name Summary
get fun get(key: String): Any?
Gets a value from the payload
getBooleanList fun getBooleanList(key: String): List<Boolean>?
Gets a value from the payload as a list of Boolean
getDoubleList fun getDoubleList(key: String): List<Double>?
Gets a value from the payload as a list of Double
getIntList fun getIntList(key: String): List<Int>?
Gets a value from the payload as a list of Int
getKeys fun getKeys(): Set<String>
Gets all the payload keys
getLongList fun getLongList(key: String): List<Long>?
Gets a value from the payload as a list of Long
getStringList fun getStringList(key: String): List<String>?
Gets a value from the payload as a list of String
put fun put(key: String, value: Any): Unit
Puts a value into the payload

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.