NumberParser#parse(String). Contains a string with an
optional label as well as a flag specifying whether the string contains
multiple numbers or a range (i.e. if the plural form of the label should be
selected) or if it does not.
| Modifier and Type | Field and Description |
|---|---|
| private final CSLLabel | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NumberElement(String
the element's string text, CSLLabel the element's label (may be label, boolean null)specifies whether the string contains multiple numbers
or a range (i.e. if the plural form of the label should be selected)
or if it does not. plural)Construct the element |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public CSLLabel | |
| public String | |
| public int | |
| public boolean | Returns: true if the string contains multiple numbersDetermine whether the string contains multiple numbers or a range (i.e. if the plural form of the label should be selected) or if it does not. |
| label | back to summary |
|---|---|
| private final CSLLabel label | |
| plural | back to summary |
|---|---|
| private final boolean plural | |
| text | back to summary |
|---|---|
| private final String text | |
| NumberElement | back to summary |
|---|---|
| public NumberElement(String text) Construct the element without a label
| |
| NumberElement | back to summary |
|---|---|
| public NumberElement(String text, CSLLabel label, boolean plural) Construct the element | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getLabel | back to summary |
|---|---|
| public CSLLabel getLabel() Get the element's label
| |
| getText | back to summary |
|---|---|
| public String getText() Get the element's text
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isPlural | back to summary |
|---|---|
| public boolean isPlural() Determine whether the string contains multiple numbers or a range (i.e. if the plural form of the label should be selected) or if it does not.
| |