本章内容:

1、源码

InterfaceStability 类包含三个注解,用于说明被他们注解的类型的稳定性。

/**
* Annotation to inform users of how much to rely on a particular package,
* class or method not changing over time.
*/
public class InterfaceStability { /**
* Stable APIs that retain source and binary compatibility within a major release.
* These interfaces can change from one major release to another major release
* (e.g. from 1.0 to 2.0).
*/
@Documented
public @interface Stable {}; /**
* APIs that are meant to evolve towards becoming stable APIs, but are not stable APIs yet.
* Evolving interfaces can change from one feature release to another release (i.e. 2.1 to 2.2).
*/
@Documented
public @interface Evolving {}; /**
* Unstable APIs, with no guarantee on stability.
* Classes that are unannotated are considered Unstable.
*/
@Documented
public @interface Unstable {};
}

2、总结

InterfaceStability 类包含三个注解,用于说明被他们注解的类型的稳定性。

@InterfaceStability.Stable: 说明主版本是稳定的,不同主版本之间可能不兼容。

@InterfaceStability.Evolving: 说明是不停在变化的,不同小版本之间也可能不兼容。

@InterfaceStability.Unstable: 说明稳定性没有任何保证。

参考文献:

最新文章

  1. hive中分号问题
  2. JDE开发端安装笔记
  3. 详解Java GC的工作原理
  4. svn 安装与设置
  5. iOS之Storyboard References
  6. WifiDog and OpenWrt
  7. ORACLE查询语句
  8. 开启MongoDB客户端访问控制
  9. AddNewsServlet -servlet处理响应请求
  10. java nginx等代理或网关转发请求后获取客户端的ip地址,原理
  11. 洛谷P3195 玩具装箱TOY
  12. Postman-断言和Runner
  13. C# Language Specification 5.0 (翻译)第二章 词法结构
  14. HDU 1907 John (Nim博弈)
  15. UVA 357 Let Me Count The Ways(全然背包)
  16. Mac下关闭Sublime Text 3的更新检查
  17. hihocoder #1032 : 最长回文子串 Manacher算法
  18. redis配置参数简介
  19. HTML-▲▲video 视频标签全属性详解▲▲
  20. XXE攻防——XML外部实体注入

热门文章

  1. Codeforces 1036C Classy Numbers 【DFS】
  2. 现代C++之理解模板类型推断(template type deduction)
  3. babel那些事儿
  4. Maven设置utf8编码格式
  5. iis和tomcat同时运行,完美解决80端口冲突问题
  6. [Python]list.append字典的时候,修改字典会导致list内容变化的问题
  7. KTV项目之3个ListView的跳转和加载歌手图片
  8. 快速学习MarkDown语法及MarkDown拓展语法
  9. yii2过滤器(filter)
  10. 基于Tkinter以及百度翻译爬虫做的一个小的翻译软件