Class JsonIntLiteralImpl

    • Constructor Detail

      • JsonIntLiteralImpl

        public JsonIntLiteralImpl​(long value)
      • JsonIntLiteralImpl

        public JsonIntLiteralImpl​(String literal,
                                  int offset,
                                  int length)
    • Method Detail

      • longValue

        public long longValue()
        Description copied from interface: JsonIntLiteral
        Long value of this literal (Integer is small)
        Specified by:
        longValue in interface JsonIntLiteral
        Returns:
        long value
      • copy

        public JsonValue copy()
        Description copied from interface: JsonValue
        Makes deep copy of this value.
        Specified by:
        copy in interface JsonValue
        Returns:
        copy of this
      • asTemplateParam

        public Object asTemplateParam()
        Description copied from interface: JsonValue
        Converts value to value usable for some template frameworks. - JsonObjects is converted to read only Map - JsonArray is converted to read only List - JsonLiteral is converted to its java value
        Specified by:
        asTemplateParam in interface JsonValue
        Returns:
        template parameter form of this value