Package akka.remote

Enum WireFormats.TimeUnit

  • All Implemented Interfaces:
    akka.protobuf.Internal.EnumLite, akka.protobuf.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.protobuf.ProtocolMessageEnum
    Protobuf enum TimeUnit
    
     java.util.concurrent.TimeUnit enum
     
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface akka.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface akka.protobuf.ProtocolMessageEnum
      • valueOf

        public static WireFormats.TimeUnit valueOf​(int value)
        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 name
        java.lang.NullPointerException - if the argument is null
      • internalGetValueMap

        public static akka.protobuf.Internal.EnumLiteMap<WireFormats.TimeUnit> internalGetValueMap()
      • getValueDescriptor

        public final akka.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface akka.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final akka.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface akka.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final akka.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static WireFormats.TimeUnit valueOf​(akka.protobuf.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 name
        java.lang.NullPointerException - if the argument is null