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
    When true, the annotated type is emulated in GWT.
    boolean
    Obsolete; formerly used to indicate when a value was GWT serializable back before Guava dropped support for GWT serialization.
  • Element Details

    • serializable

      boolean serializable
      Obsolete; formerly used to indicate when a value was GWT serializable back before Guava dropped support for GWT serialization.
      See Also:
      Default:
      false
    • emulated

      boolean emulated
      When true, the annotated type is emulated in GWT. The emulated source (also known as super-source) is different from the implementation used by the JVM.
      See Also:
      Default:
      false