Skip to content

Some utils

qtiuto edited this page Feb 16, 2019 · 1 revision

The module is named 'jutils',

  • classBuilder

    a field stands for the class builder type.

    e.g.

    local jutils= require 'jutils'
    print(jutils.classBuider.declare().build())
  • toTable

    a function that convert the given java map or list to table. Boxed keys are always unboxed. e.g.

    local jutils= require 'jutils'
    print(jutils.toTable(object({1,3,5})))

Clone this wiki locally