Enum WireType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WireType>

    public enum WireType
    extends java.lang.Enum<WireType>
    • Enum Constant Detail

      • NOTHING

        public static final WireType NOTHING
      • INT_8

        public static final WireType INT_8
      • INT_16

        public static final WireType INT_16
      • INT_32

        public static final WireType INT_32
      • INT_64

        public static final WireType INT_64
      • INT_128

        public static final WireType INT_128
      • UINT_8

        public static final WireType UINT_8
      • UINT_16

        public static final WireType UINT_16
      • UINT_32

        public static final WireType UINT_32
      • UINT_64

        public static final WireType UINT_64
      • UINT_128

        public static final WireType UINT_128
      • DOUBLE

        public static final WireType DOUBLE
      • BOOLEAN

        public static final WireType BOOLEAN
      • STRING_32

        public static final WireType STRING_32
      • YSON_32

        public static final WireType YSON_32
      • TUPLE

        public static final WireType TUPLE
      • VARIANT_8

        public static final WireType VARIANT_8
      • VARIANT_16

        public static final WireType VARIANT_16
      • REPEATED_VARIANT_8

        public static final WireType REPEATED_VARIANT_8
      • REPEATED_VARIANT_16

        public static final WireType REPEATED_VARIANT_16
    • Method Detail

      • values

        public static WireType[] 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 (WireType c : WireType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WireType 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<WireType>
      • isSimpleType

        public boolean isSimpleType()
      • isVariant

        public boolean isVariant()