/** returns true if the event is of the given event type and for the given item type */ public boolean isType(final EventType eventType, final ItemType itemType) { try { return isType(eventType) && ItemType.getForClass(object.getClass()).equals(itemType); } catch (final ApprenticeEx e) { return false; } }
@Override public String toString() { try { return eventType + " for " + ItemType.getForClass(object.getClass()); } catch (final ApprenticeEx e) { return eventType.toString(); } }