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 DAYSDAYS = 7;HOURSHOURS = 6;MICROSECONDSMICROSECONDS = 2;MILLISECONDSMILLISECONDS = 3;MINUTESMINUTES = 5;NANOSECONDSNANOSECONDS = 1;SECONDSSECONDS = 4;
-
Field Summary
Fields Modifier and Type Field Description static intDAYS_VALUEDAYS = 7;static intHOURS_VALUEHOURS = 6;static intMICROSECONDS_VALUEMICROSECONDS = 2;static intMILLISECONDS_VALUEMILLISECONDS = 3;static intMINUTES_VALUEMINUTES = 5;static intNANOSECONDS_VALUENANOSECONDS = 1;static intSECONDS_VALUESECONDS = 4;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WireFormats.TimeUnitforNumber(int value)static akka.protobufv3.internal.Descriptors.EnumDescriptorgetDescriptor()akka.protobufv3.internal.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()akka.protobufv3.internal.Descriptors.EnumValueDescriptorgetValueDescriptor()static akka.protobufv3.internal.Internal.EnumLiteMap<WireFormats.TimeUnit>internalGetValueMap()static WireFormats.TimeUnitvalueOf(int value)Deprecated.static WireFormats.TimeUnitvalueOf(akka.protobufv3.internal.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static WireFormats.TimeUnitvalueOf(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:
getNumberin interfaceakka.protobufv3.internal.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfaceakka.protobufv3.internal.ProtocolMessageEnum
-
getDescriptorForType
public final akka.protobufv3.internal.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-