Package com.tangosol.util
Class AnyEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.tangosol.util.AnyEvent
-
- All Implemented Interfaces:
Serializable
public class AnyEvent extends EventObject implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
value
The value associated with this event.-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
Gets the associated value as a java int.String
getString()
Gets the associated value as a java.lang.String.Object
getValue()
Gets the associated value.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
value
protected Object value
The value associated with this event.
-
-
Method Detail
-
getValue
public Object getValue()
Gets the associated value.- Returns:
- the value associated with the event
-
getString
public String 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
-
-