public enum

DynamicProto.FloatToInt32RoundMode

extends java.lang.Enum<DynamicProto.FloatToInt32RoundMode>

 java.lang.Object

↳java.lang.Enum<DynamicProto.FloatToInt32RoundMode>

↳androidx.wear.protolayout.expression.proto.DynamicProto.FloatToInt32RoundMode

Overview

 Rounding mode to use when converting a float to an int32. If the value is
 larger than {@link Integer#MAX_VALUE} or smaller than {@link
 Integer#MIN_VALUE}, the result of this operation will be invalid.
 
Protobuf enum androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode

Summary

Enum Constants
ROUND_MODE_CEILING
 Use ceil(x) when rounding.
ROUND_MODE_FLOOR
 Use floor(x) when rounding.
ROUND_MODE_ROUND
 Use round(x) when rounding (i.e.
ROUND_MODE_UNDEFINED
 An undefined rounding mode.
UNRECOGNIZED
Fields
public static final intROUND_MODE_CEILING_VALUE

 Use ceil(x) when rounding.

public static final intROUND_MODE_FLOOR_VALUE

 Use floor(x) when rounding.

public static final intROUND_MODE_ROUND_VALUE

 Use round(x) when rounding (i.e.

public static final intROUND_MODE_UNDEFINED_VALUE

 An undefined rounding mode.

Methods
public static DynamicProto.FloatToInt32RoundModeforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static DynamicProto.FloatToInt32RoundModevalueOf(int value)

public static DynamicProto.FloatToInt32RoundModevalueOf(java.lang.String name)

public static DynamicProto.FloatToInt32RoundModevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

ROUND_MODE_UNDEFINED

 An undefined rounding mode.
 
ROUND_MODE_UNDEFINED = 0;

ROUND_MODE_FLOOR

 Use floor(x) when rounding.
 
ROUND_MODE_FLOOR = 1;

ROUND_MODE_ROUND

 Use round(x) when rounding (i.e. rounds to the closest int).
 
ROUND_MODE_ROUND = 2;

ROUND_MODE_CEILING

 Use ceil(x) when rounding.
 
ROUND_MODE_CEILING = 3;

UNRECOGNIZED

Fields

public static final int ROUND_MODE_UNDEFINED_VALUE

 An undefined rounding mode.
 
ROUND_MODE_UNDEFINED = 0;

public static final int ROUND_MODE_FLOOR_VALUE

 Use floor(x) when rounding.
 
ROUND_MODE_FLOOR = 1;

public static final int ROUND_MODE_ROUND_VALUE

 Use round(x) when rounding (i.e. rounds to the closest int).
 
ROUND_MODE_ROUND = 2;

public static final int ROUND_MODE_CEILING_VALUE

 Use ceil(x) when rounding.
 
ROUND_MODE_CEILING = 3;

Methods

public static DynamicProto.FloatToInt32RoundMode values()

public static DynamicProto.FloatToInt32RoundMode valueOf(java.lang.String name)

public final int getNumber()

public static DynamicProto.FloatToInt32RoundMode valueOf(int value)

Deprecated: Use DynamicProto.FloatToInt32RoundMode.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static DynamicProto.FloatToInt32RoundMode forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()