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

Experiment

data class Experiment (source)

Represents an A/B test experiment, independent of the underlying storage mechanism

Types

Name Summary
Bucket data class Bucket
Matcher data class Matcher

Constructors

Name Summary
<init> Experiment(id: String, name: String, description: String? = null, match: Matcher? = null, bucket: Bucket? = null, lastModified: Long? = null, payload: ExperimentPayload? = null, schema: Long? = null)
Represents an A/B test experiment, independent of the underlying storage mechanism

Properties

Name Summary
bucket val bucket: Bucket?
Experiment buckets
description val description: String?
Detailed description of the experiment
lastModified val lastModified: Long?
Last modified date, as a UNIX timestamp
match val match: Matcher?
Filters for enabling the experiment
name val name: String
Human-readable name of the experiment
payload val payload: ExperimentPayload?
Experiment associated metadata
schema val schema: Long?
Last time the experiment schema was modified (as a UNIX timestamp)

Functions

Name Summary
equals fun equals(other: Any?): Boolean
Compares experiments by their id
hashCode fun hashCode(): Int

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.