Package org.miaixz.bus.core.lang.ref
Interface Ref<T>
- Type Parameters:
T- 对象类型
- All Known Implementing Classes:
PhantomObject,SoftObject,StrongObject,WeakObject
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
针对
Reference的接口定义,用于扩展功能 例如提供自定义的无需回收对象- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
get
T get()获取引用的原始对象- Returns:
- 原始对象
-