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

Bucket

data class Bucket

Matcher

data class Matcher

Constructors

<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

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

equals

fun equals(other: Any?): Boolean

Compares experiments by their id

hashCode

fun hashCode(): Int