public abstract class NumberRangeFormatterSettings<T extends NumberRangeFormatterSettings<?>>
extends java.lang.Object
UnlocalizedNumberRangeFormatter and LocalizedNumberRangeFormatter. This class is not intended for
public subclassing.NumberRangeFormatter| Modifier and Type | Method and Description |
|---|---|
T |
collapse(NumberRangeFormatter.RangeCollapse collapse)
Sets the aggressiveness of "collapsing" fields across the range separator.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
T |
identityFallback(NumberRangeFormatter.RangeIdentityFallback identityFallback)
Sets the behavior when the two sides of the range are the same.
|
T |
numberFormatterBoth(UnlocalizedNumberFormatter formatter)
Sets the NumberFormatter instance to use for the numbers in the range.
|
T |
numberFormatterFirst(UnlocalizedNumberFormatter formatterFirst)
Sets the NumberFormatter instance to use for the first number in the range.
|
T |
numberFormatterSecond(UnlocalizedNumberFormatter formatterSecond)
Sets the NumberFormatter instances to use for the second number in the range.
|
public T numberFormatterBoth(UnlocalizedNumberFormatter formatter)
The NumberFormatter instances must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatter - The formatter to use for both numbers in the range.NumberFormatter,
NumberRangeFormatterpublic T numberFormatterFirst(UnlocalizedNumberFormatter formatterFirst)
The NumberFormatter instance must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatterFirst - The formatter to use for the first number in the range.NumberFormatter,
NumberRangeFormatterpublic T numberFormatterSecond(UnlocalizedNumberFormatter formatterSecond)
The NumberFormatter instance must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatterSecond - The formatter to use for the second number in the range.NumberFormatter,
NumberRangeFormatterpublic T collapse(NumberRangeFormatter.RangeCollapse collapse)
The default value is AUTO.
collapse - The collapsing strategy to use for this range.NumberRangeFormatterpublic T identityFallback(NumberRangeFormatter.RangeIdentityFallback identityFallback)
The default value is APPROXIMATELY.
identityFallback - The strategy to use when formatting two numbers that end up being the same.NumberRangeFormatterpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.ObjectCopyright © 2016 Unicode, Inc. and others.