public class PluralExpr
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
eval(java.lang.CharSequence expr,
int quantity)
Returns evaluated plural expression
|
int |
eval(int quantity)
Evaluates this plural expression.
|
static PluralExpr |
getPluralExpr(StringValue metaData)
Returns a PluralExpr from the metadata.
|
public static PluralExpr getPluralExpr(StringValue metaData)
metadata
- contains the plural expressionpublic static int eval(java.lang.CharSequence expr, int quantity)
expr
- quantity
- number of itemspublic int eval(int quantity)