mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Fix][Document] Event 修复 SupportedCancel 中 javadoc 内容的错误;
[Fix][Document] SupportedCancel 修复文档上的细节错误;
This commit is contained in:
parent
79c12a8799
commit
d92873c1f5
@ -41,7 +41,7 @@ public interface SupportedCancel {
|
||||
* @param event 事件对象.
|
||||
* @return 如果成功, 返回 true, 如果事件已执行完成, 返回 false.
|
||||
* @throws UnsupportedOperationException 当事件未实现 {@link Cancelable} 接口时抛出.
|
||||
* @throws NoSuchElementException 当 EventId 所属事件在 {@link SupportedCancel} 中无法找到时抛出.
|
||||
* @throws NoSuchElementException 当事件在 {@link SupportedCancel} 中无法找到时抛出.
|
||||
*/
|
||||
boolean cancelEvent(EventObject event) throws UnsupportedOperationException, NoSuchElementException;
|
||||
|
||||
@ -49,8 +49,9 @@ public interface SupportedCancel {
|
||||
* 对可取消对象执行取消处理操作.
|
||||
* @param cancelableEvent 可取消对象事件.
|
||||
* @return 如果成功, 返回 true, 如果事件已执行完成, 返回 false.
|
||||
* @throws NoSuchElementException 当 EventId 所属事件在 {@link SupportedCancel} 中无法找到时抛出.
|
||||
* @throws NoSuchElementException 当事件在 {@link SupportedCancel} 中无法找到时抛出.
|
||||
* @throws IllegalArgumentException 当 Cancelable 对象未实现 {@link EventObject} (即不是一个事件对象) 时抛出.
|
||||
*/
|
||||
boolean cancelEvent(Cancelable cancelableEvent) throws NoSuchElementException;
|
||||
boolean cancelEvent(Cancelable cancelableEvent) throws NoSuchElementException, IllegalArgumentException;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user