JMRTD 0.4.5

org.jmrtd
Class PassportEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jmrtd.PassportEvent
All Implemented Interfaces:
Serializable

public class PassportEvent
extends EventObject

Event for passport insertion and removal.

Version:
$Id: PassportEvent.java 1208 2010-07-18 14:26:58Z martijno $
Author:
Martijn Oostdijk (martijn.oostdijk@gmail.com)
See Also:
Serialized Form

Field Summary
static int INSERTED
          Event type constant.
static int REMOVED
          Event type constant.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PassportEvent(int type, PassportService service)
          Creates an event.
 
Method Summary
 boolean equals(Object other)
          Whether this event is equal to the event in other.
 PassportService getService()
          Gets the event source.
 int getType()
          Gets the event type.
 int hashCode()
          Gets a hash code for this event.
 String toString()
          Gets a textual description of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOVED

public static final int REMOVED
Event type constant.

See Also:
Constant Field Values

INSERTED

public static final int INSERTED
Event type constant.

See Also:
Constant Field Values
Constructor Detail

PassportEvent

public PassportEvent(int type,
                     PassportService service)
Creates an event.

Parameters:
type - event type
service - event source
Method Detail

getType

public int getType()
Gets the event type.

Returns:
event type

getService

public PassportService getService()
Gets the event source.

Returns:
a passport service

toString

public String toString()
Gets a textual description of this event.

Overrides:
toString in class EventObject
Returns:
a textual description of this event

equals

public boolean equals(Object other)
Whether this event is equal to the event in other.

Overrides:
equals in class Object
Returns:
a boolean

hashCode

public int hashCode()
Gets a hash code for this event.

Overrides:
hashCode in class Object
Returns:
a hash code for this event

JMRTD 0.4.5