| java.lang.Object | |
| ↳ | com.google.firebase.remoteconfig.Condition |
Represents a Remote Config condition that can be included in a Template.
A condition targets a specific group of users. A list of these conditions make up
part of a Remote Config template.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Condition(String name, String expression)
Creates a new
Condition. | |||||||||||
|
Condition(String name, String expression, TagColor tagColor)
Creates a new
Condition. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | equals(Object o) | ||||||||||
| String |
getExpression()
Gets the expression of the condition.
| ||||||||||
| String |
getName()
Gets the name of the condition.
| ||||||||||
| TagColor |
getTagColor()
Gets the tag color of the condition used for display purposes in the Firebase Console.
| ||||||||||
| int | hashCode() | ||||||||||
| Condition |
setExpression(String expression)
Sets the expression of the condition.
| ||||||||||
| Condition |
setName(String name)
Sets the name of the condition.
| ||||||||||
| Condition |
setTagColor(TagColor tagColor)
Sets the tag color of the condition.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new Condition.
| name | A non-null, non-empty, and unique name of this condition. |
|---|---|
| expression | A non-null and non-empty expression of this condition. |
Creates a new Condition.
| name | A non-null, non-empty, and unique name of this condition. |
|---|---|
| expression | A non-null and non-empty expression of this condition. |
| tagColor | A color associated with this condition for display purposes in the Firebase Console. Not specifying this value results in the console picking an arbitrary color to associate with the condition. |
Gets the expression of the condition.
Gets the name of the condition.
Gets the tag color of the condition used for display purposes in the Firebase Console.
Sets the expression of the condition.
See condition expressions for the expected syntax of this field.
| expression | The logic of this condition. |
|---|
Condition.
Sets the name of the condition.
| name | A non-empty and unique name of this condition. |
|---|
Condition.
Sets the tag color of the condition.
The color associated with this condition for display purposes in the Firebase Console. Not specifying this value results in the console picking an arbitrary color to associate with the condition.
| tagColor | The tag color of this condition. |
|---|
Condition.