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.

@FunctionalInterface public interface Ref<T>
针对Reference的接口定义,用于扩展功能 例如提供自定义的无需回收对象
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    获取引用的原始对象
  • Method Details

    • get

      T get()
      获取引用的原始对象
      Returns:
      原始对象