public abstract class SuggestedNameInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SuggestedNameInfo.Delegate |
Modifier and Type | Field and Description |
---|---|
java.lang.String [] |
names
The suggested names.
|
static SuggestedNameInfo |
NULL_INFO |
static Key<SuggestedNameInfo> |
SUGGESTED_NAME_INFO_KEY |
Constructor and Description |
---|
SuggestedNameInfo(java.lang.String [] names) |
Modifier and Type | Method and Description |
---|---|
void |
nameChosen(java.lang.String name)
Should be called when one of the suggested names has been chosen by the user, to
update the statistics on name usage.
|
public static final Key<SuggestedNameInfo> SUGGESTED_NAME_INFO_KEY
public static final SuggestedNameInfo NULL_INFO
public final java.lang.String [] names
public void nameChosen(java.lang.String name)
Should be called when one of the suggested names has been chosen by the user, to update the statistics on name usage.
Note to implementers: do not leave this method non-overridden as it going to be abstract.
name
- the accepted suggestion.