Parsing Engine

danbikel.parser
Class AbstractEvent

java.lang.Object
  extended bydanbikel.parser.AbstractEvent
All Implemented Interfaces:
Event, Serializable
Direct Known Subclasses:
SexpEvent

public abstract class AbstractEvent
extends Object
implements Event

A convenience class that simply implements the equals method, as specified by the contract in Event.equals(Object). For efficiency, subclasses are encouraged to override this method, using its result only when the two objects being compared are both instances of Event but are not of identical run-time types (this is the strategy employed by SexpEvent).

See Also:
SexpEvent.equals(Object), Serialized Form

Method Summary
 boolean genericEquals(Object obj)
          Compares this Event object to the specified object for equality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface danbikel.parser.Event
canonicalize, copy, equals, get, getClass, hashCode, numComponents, numComponents, numTypes, typeIndex
 

Method Detail

genericEquals

public boolean genericEquals(Object obj)
Compares this Event object to the specified object for equality. Two Event objects are equal if the following conditions are met: N.B.: For efficiency, subclasses are encouraged to override this method, using its result only when the two objects being compared are both instaces of Event but are not of identical run-time types.

Parameters:
obj - the object to be tested for equality to this object
Returns:
whether this Event is equal to the specified object

Parsing Engine

Author: Dan Bikel.