public final class

PercentCondition

extends Object
java.lang.Object
   ↳ com.google.firebase.remoteconfig.PercentCondition

Class Overview

Represents a condition that compares the instance pseudo-random percentile to a given limit.

Summary

Public Methods
int getMicroPercent()
Gets the limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators.
MicroPercentRange getMicroPercentRange()
Gets micro-percent interval to be used with the BETWEEN operator.
PercentConditionOperator getPercentConditionOperator()
Gets choice of percent operator to determine how to compare targets to percent(s).
String getSeed()
The seed used when evaluating the hash function to map an instance to a value in the hash space.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getMicroPercent ()

Gets the limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators. The value must be in the range [0 and 100000000].

Returns
  • micro percent.

public MicroPercentRange getMicroPercentRange ()

Gets micro-percent interval to be used with the BETWEEN operator.

Returns
  • micro percent range.

public PercentConditionOperator getPercentConditionOperator ()

Gets choice of percent operator to determine how to compare targets to percent(s).

Returns
  • operator.

public String getSeed ()

The seed used when evaluating the hash function to map an instance to a value in the hash space. This is a string which can have 0 - 32 characters and can contain ASCII characters [-_.0-9a-zA-Z].The string is case-sensitive.

Returns
  • seed.