de.qfs.lib.util
Class CountEvent
java.lang.Object
|
+--java.util.EventObject
|
+--de.qfs.lib.util.CountEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class CountEvent
- extends java.util.EventObject
Event object that contains details about read count changes in a CountingInputStream
.
- Since:
- 0.96.0
- Version:
- $Revision: 1.2 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
CountEvent(java.lang.Object source,
long count)
Create a new CountEvent. |
Method Summary |
long |
getCount()
Get the count of the CountEvent. |
void |
setCount(long count)
Set the count of the CountEvent. |
java.lang.String |
toString()
Get a String representation for the event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CountEvent
public CountEvent(java.lang.Object source,
long count)
- Create a new CountEvent.
- Parameters:
source
- The source of the event, typically the CountingInputStream
.count
- The new count for the stream.
getCount
public final long getCount()
- Get the count of the CountEvent.
- Returns:
- The count of the CountEvent.
setCount
public final void setCount(long count)
- Set the count of the CountEvent.
- Parameters:
count
- The count to set.
toString
public java.lang.String toString()
- Get a String representation for the event.
- Overrides:
toString
in class java.util.EventObject
- Returns:
- The String representation for the event.