public final class Choice
extends Object
Use when constructing PropertyDescriptorBuilder.choices
| Modifier and Type | Class and Description |
|---|---|
static class |
Choice.ChoiceBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Choice.ChoiceBuilder |
builder()
Builder for the choice
|
boolean |
equals(Object o) |
String |
getName()
The text displayed to the user for this choice
|
Object |
getValue()
The value associated with this choice.
|
int |
hashCode() |
static List<Choice> |
listOfChoices(List<Map> choicesMaps)
Create a
List of Choice given a Map<String,Object> |
public static final String NAME
public static final String VALUE
public String getName()
public Object getValue()
The value will be stored in the configuration.
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static List<Choice> listOfChoices(List<Map> choicesMaps)
List of Choice given a Map<String,Object>choicesMaps - Maps to construct the Choices from. The Map should have a "value" key and a "name" key.public static Choice.ChoiceBuilder builder()
Copyright © 2018-present Appian Corporation. All Rights Reserved.