Package akka.remote
Enum WireFormats.TimeUnit
- java.lang.Object
-
- java.lang.Enum<WireFormats.TimeUnit>
-
- akka.remote.WireFormats.TimeUnit
-
- All Implemented Interfaces:
akka.protobufv3.internal.Internal.EnumLite
,akka.protobufv3.internal.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<WireFormats.TimeUnit>
- Enclosing class:
- WireFormats
public static enum WireFormats.TimeUnit extends java.lang.Enum<WireFormats.TimeUnit> implements akka.protobufv3.internal.ProtocolMessageEnum
java.util.concurrent.TimeUnit enum
Protobuf enumTimeUnit
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYS
DAYS = 7;
HOURS
HOURS = 6;
MICROSECONDS
MICROSECONDS = 2;
MILLISECONDS
MILLISECONDS = 3;
MINUTES
MINUTES = 5;
NANOSECONDS
NANOSECONDS = 1;
SECONDS
SECONDS = 4;
-
Field Summary
Fields Modifier and Type Field Description static int
DAYS_VALUE
DAYS = 7;
static int
HOURS_VALUE
HOURS = 6;
static int
MICROSECONDS_VALUE
MICROSECONDS = 2;
static int
MILLISECONDS_VALUE
MILLISECONDS = 3;
static int
MINUTES_VALUE
MINUTES = 5;
static int
NANOSECONDS_VALUE
NANOSECONDS = 1;
static int
SECONDS_VALUE
SECONDS = 4;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WireFormats.TimeUnit
forNumber(int value)
static akka.protobufv3.internal.Descriptors.EnumDescriptor
getDescriptor()
akka.protobufv3.internal.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
akka.protobufv3.internal.Descriptors.EnumValueDescriptor
getValueDescriptor()
static akka.protobufv3.internal.Internal.EnumLiteMap<WireFormats.TimeUnit>
internalGetValueMap()
static WireFormats.TimeUnit
valueOf(int value)
Deprecated.static WireFormats.TimeUnit
valueOf(akka.protobufv3.internal.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static WireFormats.TimeUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WireFormats.TimeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NANOSECONDS
public static final WireFormats.TimeUnit NANOSECONDS
NANOSECONDS = 1;
-
MICROSECONDS
public static final WireFormats.TimeUnit MICROSECONDS
MICROSECONDS = 2;
-
MILLISECONDS
public static final WireFormats.TimeUnit MILLISECONDS
MILLISECONDS = 3;
-
SECONDS
public static final WireFormats.TimeUnit SECONDS
SECONDS = 4;
-
MINUTES
public static final WireFormats.TimeUnit MINUTES
MINUTES = 5;
-
HOURS
public static final WireFormats.TimeUnit HOURS
HOURS = 6;
-
DAYS
public static final WireFormats.TimeUnit DAYS
DAYS = 7;
-
-
Field Detail
-
NANOSECONDS_VALUE
public static final int NANOSECONDS_VALUE
NANOSECONDS = 1;
- See Also:
- Constant Field Values
-
MICROSECONDS_VALUE
public static final int MICROSECONDS_VALUE
MICROSECONDS = 2;
- See Also:
- Constant Field Values
-
MILLISECONDS_VALUE
public static final int MILLISECONDS_VALUE
MILLISECONDS = 3;
- See Also:
- Constant Field Values
-
SECONDS_VALUE
public static final int SECONDS_VALUE
SECONDS = 4;
- See Also:
- Constant Field Values
-
MINUTES_VALUE
public static final int MINUTES_VALUE
MINUTES = 5;
- See Also:
- Constant Field Values
-
HOURS_VALUE
public static final int HOURS_VALUE
HOURS = 6;
- See Also:
- Constant Field Values
-
DAYS_VALUE
public static final int DAYS_VALUE
DAYS = 7;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static WireFormats.TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WireFormats.TimeUnit c : WireFormats.TimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireFormats.TimeUnit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfaceakka.protobufv3.internal.Internal.EnumLite
- Specified by:
getNumber
in interfaceakka.protobufv3.internal.ProtocolMessageEnum
-
valueOf
@Deprecated public static WireFormats.TimeUnit valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static WireFormats.TimeUnit forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static akka.protobufv3.internal.Internal.EnumLiteMap<WireFormats.TimeUnit> internalGetValueMap()
-
getValueDescriptor
public final akka.protobufv3.internal.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfaceakka.protobufv3.internal.ProtocolMessageEnum
-
getDescriptorForType
public final akka.protobufv3.internal.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceakka.protobufv3.internal.ProtocolMessageEnum
-
getDescriptor
public static final akka.protobufv3.internal.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static WireFormats.TimeUnit valueOf(akka.protobufv3.internal.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-