com.google.common.annotations.Beta
/** * 表明一个公用API的未来版本是受不兼容变更或删除限制的 * 拥有这个注释标志的API不受任何兼容性保证 * */ @Retention(RetentionPolicy.CLASS) @Target({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Documented @GwtCompatible public @interface Beta {}
com.google.common.annotations.GwtCompatible
/** * 表明一个类型可能会与 Google Web Toolkit 一起使用. * 如果一个方法使用这个注释,说明这个方法的返回值是 GWT 兼容的 * */ @Retention(RetentionPolicy.CLASS) @Target({ ElementType.TYPE, ElementType.METHOD }) @Documented @GwtCompatible public @interface GwtCompatible { /** * 说明一个类型或者方法的返回值是否支持 GWT 序列化 * */ boolean serializable() default false; /** * 说明一个类型是否在 GWT 被模拟. * 被模拟的源(父源)和JVM的实现不一样 * */ boolean emulated() default false; }
com.google.common.annotations.GwtIncompatible
/** * 说明一个方法可能无法与 GWT 一起使用 * 他只能用于被 @GwtCompatible 标志的类的字段,方法和内部类 * */ @Retention(RetentionPolicy.CLASS) @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD })