public interface

DynamicProto.FloatFormatOpOrBuilder

 androidx.wear.protolayout.expression.proto.DynamicProto.FloatFormatOpOrBuilder

Subclasses:

DynamicProto.FloatFormatOp, DynamicProto.FloatFormatOp.Builder

Summary

Methods
public booleangetGroupingUsed()

 Digit grouping used.

public DynamicProto.DynamicFloatgetInput()

 The source of Float data to convert to a string.

public intgetMaxFractionDigits()

 Maximum fraction digits.

public intgetMinFractionDigits()

 Minimum fraction digits.

public intgetMinIntegerDigits()

 Minimum integer digits.

public DynamicProto.FloatFormatOp.OptionalMaxFractionDigitsCasegetOptionalMaxFractionDigitsCase()

public DynamicProto.FloatFormatOp.OptionalMinIntegerDigitsCasegetOptionalMinIntegerDigitsCase()

public booleanhasInput()

 The source of Float data to convert to a string.

public booleanhasMaxFractionDigits()

 Maximum fraction digits.

public booleanhasMinIntegerDigits()

 Minimum integer digits.

Methods

public boolean hasInput()

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

Returns:

Whether the input field is set.

public DynamicProto.DynamicFloat getInput()

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

Returns:

The input.

public boolean hasMaxFractionDigits()

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Returns:

Whether the maxFractionDigits field is set.

public int getMaxFractionDigits()

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Returns:

The maxFractionDigits.

public int getMinFractionDigits()

 Minimum fraction digits. Zeros will be appended to the end to satisfy this
 constraint. If not defined, defaults to zero. minimumFractionDigits must be
 <= maximumFractionDigits. If the condition is not satisfied, then
 minimumFractionDigits will be used for both fields.
 
int32 min_fraction_digits = 3;

Returns:

The minFractionDigits.

public boolean hasMinIntegerDigits()

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Returns:

Whether the minIntegerDigits field is set.

public int getMinIntegerDigits()

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Returns:

The minIntegerDigits.

public boolean getGroupingUsed()

 Digit grouping used. Grouping size and grouping character depend on the
 current locale. If not defined, defaults to false.
 For example, in the for locale en_US, using grouping with 1234.56 would
 yield "1,234.56".
 
bool grouping_used = 5;

Returns:

The groupingUsed.

public DynamicProto.FloatFormatOp.OptionalMaxFractionDigitsCase getOptionalMaxFractionDigitsCase()

public DynamicProto.FloatFormatOp.OptionalMinIntegerDigitsCase getOptionalMinIntegerDigitsCase()