Uses of Class
tech.units.indriya.format.FormatBehavior
-
Packages that use FormatBehavior Package Description tech.units.indriya.format -
-
Uses of FormatBehavior in tech.units.indriya.format
Methods in tech.units.indriya.format that return FormatBehavior Modifier and Type Method Description static FormatBehaviorFormatBehavior. valueOf(String name)Returns the enum constant of this type with the specified name.static FormatBehavior[]FormatBehavior. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in tech.units.indriya.format with parameters of type FormatBehavior Modifier and Type Method Description static NumberDelimiterQuantityFormatNumberDelimiterQuantityFormat. getInstance(FormatBehavior behavior)Returns an instance ofNumberDelimiterQuantityFormatwith a particularFormatBehavior, either locale-sensitive or locale-neutral.static NumberDelimiterQuantityFormatNumberDelimiterQuantityFormat. getInstance(FormatBehavior behavior, int numberStyle)Returns an instance ofNumberDelimiterQuantityFormatwith a particularFormatBehavior, either locale-sensitive or locale-neutral, and a desired number style.
For example:NumberDelimiterQuantityFormat.getInstance(LOCALE_NEUTRAL))returns
new NumberDelimiterQuantityFormat.Builder().setNumberFormat(NumberFormat.getInstance(Locale.ROOT)).setUnitFormat(SimpleUnitFormat.getInstance()).build();
-