Annotation Type GwtCompatible


  • @Retention(CLASS)
    @Target({TYPE,METHOD})
    @Documented
    @GwtCompatible
    public @interface GwtCompatible
    The presence of this annotation on a type indicates that the type may be used with GWT or J2CL.

    Note that a GwtCompatible type may have some GwtIncompatible methods.

    Author:
    Charles Fry, Hayward Chan
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean emulated
      When true, the annotated type is emulated in GWT.
      boolean serializable
      Obsolete; formerly used to indicate when a value was GWT serializable back before Guava dropped support for GWT serialization.