public String toDebugString ( ) { String name = this . getClass ( ) . getName ( ) ; name = name . substring ( name . lastIndexOf ( "." ) + 1 ) ; return "event: " + name + ":" ; }
This is a method used primarily for debugging . It gives a string representation of the event details . This does not override the toString method because the compiler cannot always optimize toString out correctly . Event types should override as desired .