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 Constructor Summary
Public Method Summary
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 |
Inherited Method Summary
Public Constructors
public Condition (String name, String expression)
Creates a new Condition
.
Parameters
name | A non-null, non-empty, and unique name of this condition. |
---|---|
expression | A non-null and non-empty expression of this condition. |
public Condition (String name, String expression, TagColor tagColor)
Creates a new Condition
.
Parameters
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. |
Public Methods
public boolean equals (Object o)
public String getExpression ()
Gets the expression of the condition.
Returns
- The expression of the condition.
public String getName ()
Gets the name of the condition.
Returns
- The name of the condition.
public TagColor getTagColor ()
Gets the tag color of the condition used for display purposes in the Firebase Console.
Returns
- The tag color of the condition.
public int hashCode ()
public Condition setExpression (String expression)
Sets the expression of the condition.
See condition expressions for the expected syntax of this field.
Parameters
expression | The logic of this condition. |
---|
Returns
- This
Condition
.
public Condition setName (String name)
Sets the name of the condition.
Parameters
name | A non-empty and unique name of this condition. |
---|
Returns
- This
Condition
.
public Condition setTagColor (TagColor tagColor)
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.
Parameters
tagColor | The tag color of this condition. |
---|
Returns
- This
Condition
.