/*******************************************************************************
 * Copyright (c) 2015 - 2016 - 2016, Andreas Hefti, inarisoft@yahoo.de 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.inari.commons.event;

import com.inari.commons.lang.Predicate;

/** An EventListener which implements also a specified Matcher for the PredicatedEvent that matches if
 *  the listener is interested on specified PredicatedEvent.
 *  <p>
 *  Use this to listen to an PredicatedEvent that matches the Event on that the listener is interested in.
 *  The listener will only get notifies on a specified PredicatedEvent if the Predicate matches
 *  @author andreas hefti
 *
 */
public interface PredicatedEventListener {
    
    /** Get the Matcher for this listener. Only MatchedEventListener that are listening to the specified Event and matches 
     *  the specified Event are going to be notified.
     *  
     *  @return The Matcher to check if the MatchedEventListener is interested in a specified Event
     */
    public <L extends PredicatedEventListener> Predicate<PredicatedEvent<L>> getMatcher();

}

@@ -869,22 +869,23 @@
 %0A/** An 
-E
+e
 vent
-L
+ l
 istener 
@@ -918,17 +918,17 @@
 ecified 
-M
+m
 atcher f
@@ -930,24 +930,31 @@
 her for the 
+%7B@link 
 PredicatedEv
@@ -948,32 +948,33 @@
  PredicatedEvent
+%7D
  that matches if
@@ -1010,32 +1010,39 @@
 ed on specified 
+%7B@link 
 PredicatedEvent.
@@ -1040,16 +1040,17 @@
 tedEvent
+%7D
 .%0A *  %3Cp
@@ -1080,16 +1080,23 @@
 n to an 
+%7B@link 
 Predicat
@@ -1102,16 +1102,17 @@
 tedEvent
+%7D
  that ma
@@ -1221,16 +1221,23 @@
 ecified 
+%7B@link 
 Predicat
@@ -1243,24 +1243,25 @@
 tedEvent
+%7D
  if the 
 Predicat
@@ -1252,16 +1252,23 @@
  if the 
+%7B@link 
 Predicat
@@ -1268,16 +1268,17 @@
 redicate
+%7D
  matches
@@ -1371,25 +1371,25 @@
 /** Get the 
-M
+m
 atcher for t
@@ -1407,36 +1407,25 @@
 r. Only 
-MatchedEventL
+l
 istener
+s
  that ar
@@ -1453,21 +1453,29 @@
 ecified 
+%7B@link 
 Event
+%7D
  and mat
@@ -1502,21 +1502,33 @@
 ecified 
-Event
+%7B@link Predicate%7D
  are goi

Update PredicatedEventListener.java