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.