[Fix][Document] Event 修复 SupportedCancel 中 javadoc 内容的错误;

[Fix][Document] SupportedCancel 修复文档上的细节错误;
This commit is contained in:
LamGC 2020-11-05 13:32:18 +08:00
parent 79c12a8799
commit d92873c1f5
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -41,7 +41,7 @@ public interface SupportedCancel {
* @param event 事件对象. * @param event 事件对象.
* @return 如果成功, 返回 true, 如果事件已执行完成, 返回 false. * @return 如果成功, 返回 true, 如果事件已执行完成, 返回 false.
* @throws UnsupportedOperationException 当事件未实现 {@link Cancelable} 接口时抛出. * @throws UnsupportedOperationException 当事件未实现 {@link Cancelable} 接口时抛出.
* @throws NoSuchElementException EventId 所属事件在 {@link SupportedCancel} 中无法找到时抛出. * @throws NoSuchElementException 事件在 {@link SupportedCancel} 中无法找到时抛出.
*/ */
boolean cancelEvent(EventObject event) throws UnsupportedOperationException, NoSuchElementException; boolean cancelEvent(EventObject event) throws UnsupportedOperationException, NoSuchElementException;
@ -49,8 +49,9 @@ public interface SupportedCancel {
* 对可取消对象执行取消处理操作. * 对可取消对象执行取消处理操作.
* @param cancelableEvent 可取消对象事件. * @param cancelableEvent 可取消对象事件.
* @return 如果成功, 返回 true, 如果事件已执行完成, 返回 false. * @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;
} }