/** * Checks if the event type is user-recordable. * * @param type Event type to check. * @return {@code true} if passed event should be recorded, {@code false} - otherwise. */ public boolean isUserRecordable(int type) { assert type > 0 : "Invalid event type: " + type; return type < len ? userRecordableEvts[type] : isUserRecordable0(type); }
/** * Checks whether this event type should be recorded. Note that internal event types are * always recordable for notification purposes but may not be sent down to SPI level for * storage and subsequent querying. * * @param type Event type to check. * @return Whether or not this event type should be recorded. */ public boolean isRecordable(int type) { assert type > 0 : "Invalid event type: " + type; return type < len ? recordableEvts[type] : isUserRecordable0(type); }