public interface Destroyable
Subject
| Modifier and Type | Method and Description |
|---|---|
default void |
destroy()
毁灭这
Object。
|
default boolean |
isDestroyed()
确定这
Object已被破坏。
|
default void destroy()
throws DestroyFailedException
Object。
这Object相关敏感信息被破坏或清除。随后调用特定的方法对这Object将导致IllegalStateException抛出。
默认实现将DestroyFailedException。
DestroyFailedException如果破坏操作失败。
SecurityException如果调用者不允许破坏这
Object。
default boolean isDestroyed()
Object已被破坏。
默认实现返回错误。
Object已毁真,否则为假。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.