/** Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.*********************/package java.util;/*** <p>* The root class from which all event state objects shall be derived.* <p>* All Events are constructed with a reference to the object, the "source",* that is logically deemed to be the object upon which the Event in question* initially occurred upon.** @since 1.1*/public class EventObject implements java.io.Serializable {private static final long serialVersionUID = 5516075349620653480L;/*** The object on which the Event initially occurred.*/protected transient Object source;/*** Constructs a prototypical Event.** @param source the object on which the Event initially occurred* @throws IllegalArgumentException if source is null*/public EventObject(Object source) {if (source == null)throw new IllegalArgumentException("null source");this.source = source;}/*** The object on which the Event initially occurred.** @return the object on which the Event initially occurred*/public Object getSource() {return source;}/*** Returns a String representation of this EventObject.** @return a String representation of this EventObject*/public String toString() {return getClass().getName() + "[source=" + source + "]";}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。