JavaScript is disabled on your browser.
Skip navigation links
Java SE 21 & JDK 21
Overview
Module
Package
Class
Use
Tree
Preview
New
Deprecated
Index
Help
Summary:
Nested
Field
Constr
Method
Detail:
Field
Constr
Method
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
SEARCH
Module
java.base
Package
java.lang.ref
Interface Cleaner.Cleanable
封装类:
Cleaner
public static interface
Cleaner.Cleanable
Cleanable
表示在
Cleaner
中注册的对象和清理操作。
自 JDK 版本:
9
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
void
clean
()
注销可清理对象并调用清理操作。
Method Details
clean
void
clean
()
注销可清理对象并调用清理操作。无论调用
clean
多少次,可清理对象的清理操作最多只会被调用一次。