ClassValue in Java 7

后端 未结 4 1820
南笙
南笙 2020-12-29 01:37

While browsing the Java 7 API documentation I stumbled upon the new class java.lang.ClassValue with the following rather minimal documentation:

Lazily

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 02:09

    Its purpose it to allow adding runtime information to arbitrary target classes (reference).

    I think its targeted more towards dynamic language programmers. I am not sure how it will be useful for general application developers though.

    Initially the class was there in the package java.dyn. This bug shows it moving to java.lang.

提交回复
热议问题