Skip to content
Nicolas Morel edited this page Jan 19, 2015 · 6 revisions

Default support

Supported types are :

  • Primitive type (e.g. int)
  • Boxed primitive type (e.g. Integer)
  • Other value types: Enums, BigInteger, BigDecimal, java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp, java.lang.String, java.util.UUID
  • Arrays and 2D Arrays
  • Iterable and Collection supported by GWT (e.g. List, LinkedHashSet...)
  • Map : key's support is currently limited to value types (e.g. Integer or String)
  • JavaScriptObject
  • Any POJO containing mix of supported types

Inheritance and Generics are also supported.

Object and Serializable support

Since 0.7.0, you can use Object and Serializable types but with some restrictions. To limit the size of the generated javascript, only the types defined in a configuration class are supported by default.

Additionnaly, you can add support for other types by adding them to a whitelist as opposed to the RPC blacklist. To do that, create your own configuration class as explained here and call the method whitelist(String).

Extensions

Guava

  • Optional
  • FluentIterable serialization
  • Immutable collections and map
  • BiMap
  • Multiset
  • Multimap