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是否已被销毁。
默认实现返回false。
Object已被销毁,则为真,否则为false。
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.