cfboom.gson

Class GsonUtils

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.gson.GsonUtils

Utility class to create GSON elements (https://www.javadoc.io/doc/com.google.code.gson/gson/).

Class Attributes:
  • singleton : true
  •  
  • output : false
  •  
  • displayname : Class GsonService
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Joel Tobey
  •  
    Property Summary
    type property default serializable required
    any loader


    • access = public
    • returntype = any
    • inject = javaLoader@cfboomGson
    true false
    Constructor Summary
    init()
    Method Summary
    any array()
    any bigDecimal(numeric bigdecimal)
    any bigInteger(numeric biginteger)
    any boolean(boolean bit)
    any byte(any byte)
    any char(any char)
    any double(numeric double)
    any float(numeric float)
    any int(numeric integer)
    any long(numeric long)
    any null()
    any object()
    any primitive(any value)
    any short(numeric short)
    any string(string value)
     
    Methods inherited from class cfboom.lang.Object
    $equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    loader

    property any loader

    Attributes:
    access - public
    required - false
    returntype - any
    inject - javaLoader@cfboomGson
    serializable - true

    Method Detail

    array

    public any array()


    bigDecimal

    public any bigDecimal(numeric bigdecimal)

    Parameters:
    bigdecimal

    bigInteger

    public any bigInteger(numeric biginteger)

    Parameters:
    biginteger

    boolean

    public any boolean(boolean bit)

    Parameters:
    bit

    byte

    public any byte(any byte)

    Parameters:
    byte

    char

    public any char(any char)

    Parameters:
    char

    double

    public any double(numeric double)

    Parameters:
    double

    float

    public any float(numeric float)

    Parameters:
    float

    int

    public any int(numeric integer)

    Parameters:
    integer

    long

    public any long(numeric long)

    Parameters:
    long

    null

    public any null()


    object

    public any object()


    primitive

    public any primitive(any value)

    Parameters:
    value

    short

    public any short(numeric short)

    Parameters:
    short

    string

    public any string(string value)

    Parameters:
    value