Modifier and Type | Method and Description |
---|---|
static Cardinality |
Cardinality.forNumber(Number number,
Integer visibleDecimalPlaces,
Locale locale)
Gets an appropriate plural cardinality for the given number, visible decimal places, and locale.
|
static Cardinality |
Cardinality.forNumber(Number number,
Locale locale)
Gets an appropriate plural cardinality for the given number and locale.
|
static Cardinality |
Cardinality.forRange(Cardinality start,
Cardinality end,
Locale locale)
Gets an appropriate plural cardinality for the given range (start, end) and locale.
|
static Cardinality |
Cardinality.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cardinality[] |
Cardinality.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static SortedMap<Cardinality,Range<BigDecimal>> |
Cardinality.exampleDecimalValuesForLocale(Locale locale)
Gets a mapping of cardinalities to example decimal values for the given locale.
|
static SortedMap<Cardinality,Range<Integer>> |
Cardinality.exampleIntegerValuesForLocale(Locale locale)
Gets a mapping of cardinalities to example integer values for the given locale.
|
static SortedSet<Cardinality> |
Cardinality.supportedCardinalitiesForLocale(Locale locale)
Gets the set of cardinalities supported for the given locale.
|
Modifier and Type | Method and Description |
---|---|
static Cardinality |
Cardinality.forRange(Cardinality start,
Cardinality end,
Locale locale)
Gets an appropriate plural cardinality for the given range (start, end) and locale.
|
Copyright 2017 Product Mog LLC. Licensed under the Apache License, Version 2.0