Enum JsonAtomicToken.Type

    • Enum Constant Detail

      • START_OBJECT

        public static final JsonAtomicToken.Type START_OBJECT
        Start of an object: "{"
        Value: null
      • OBJECT_KEY_VALUE_SEPARATOR

        public static final JsonAtomicToken.Type OBJECT_KEY_VALUE_SEPARATOR
        Separator between key and value in an object: ":"
        Value: null
      • OBJECT_PAIR_SEPARATOR

        public static final JsonAtomicToken.Type OBJECT_PAIR_SEPARATOR
        Separator between key/value pairs in an object: ","
        Value: null
      • LIST_ITEM_SEPARATOR

        public static final JsonAtomicToken.Type LIST_ITEM_SEPARATOR
        Separator between items in a list: ","
        Value: null
      • STRING_CHARACTER

        public static final JsonAtomicToken.Type STRING_CHARACTER
        Character token in a string. This token is only returned if isStringAtomic() returns false. The token can consist of one or more characters. It can be more than one character as the result of parsing a Unicode code point.
        Value: String
      • NUMBER

        public static final JsonAtomicToken.Type NUMBER
        Number. A number is parsed into a Double if it contains a fraction or exponent. Otherwise it is parsed into an Integer (if the value fits in the signed 32-bit integer range) or a Long.
        Value: Integer, Long or Double
    • Method Detail

      • values

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

        public static JsonAtomicToken.Type valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null