public static class AlternateMessageSelector.AlternateForm extends Object implements Comparable<AlternateMessageSelector.AlternateForm>
Constructor and Description |
---|
AlternateForm(String name,
String description)
Create the plural form.
|
AlternateForm(String name,
String description,
boolean warnIfMissing)
Create the plural form.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AlternateMessageSelector.AlternateForm o) |
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description, suitable for describing this form to
translators.
|
String |
getName()
Returns the name.
|
boolean |
getWarnIfMissing()
Returns true if the generator should warn if this plural form is not
present.
|
int |
hashCode() |
String |
toString() |
$isInstance
public AlternateForm(String name, String description)
name
- description
- public AlternateForm(String name, String description, boolean warnIfMissing)
name
- description
- warnIfMissing
- if false, do not warn if this form is missing from a
translation. This is used for those cases where a plural form
is defined for a language, but is very rarely used.public int compareTo(AlternateMessageSelector.AlternateForm o)
compareTo
in interface Comparable<AlternateMessageSelector.AlternateForm>
public String getDescription()
public String getName()
public boolean getWarnIfMissing()
Copyright © 2016. All rights reserved.