@ Override public boolean containsDescriptor ( String descriptor ) { return descriptors . contains ( descriptor ) || type . equals ( descriptor ) ; }
returns whether the event contains the specific descriptor . this method also checks whether it matches the type .