Package com.tangosol.util
Class AnyEvent
java.lang.Object
java.util.EventObject
com.tangosol.util.AnyEvent
- All Implemented Interfaces:
 Serializable
An AnyEvent is an event used when no specific event implementation fits
 and it is not worth making one.
- Author:
 - cp 1999.08.24
 - See Also:
 
- 
Field Summary
FieldsFields inherited from class java.util.EventObject
source - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString 
- 
Field Details
- 
value
The value associated with this event. 
 - 
 - 
Constructor Details
- 
AnyEvent
Construct a newAnyEvent.- Parameters:
 source- the event sourcevalue- some value to provide to event listeners
 
 - 
 - 
Method Details
- 
getValue
Gets the associated value.- Returns:
 - the value associated with the event
 
 - 
getString
Gets the associated value as a java.lang.String.- Returns:
 - the string value associated with the event
 - Throws:
 ClassCastException- if the event's value is not a String
 - 
getInt
public int getInt()Gets the associated value as a java int.- Returns:
 - the int value associated with the event
 - Throws:
 ClassCastException- if the event's value is not a Number
 
 -