com.netflix.eventbus.filter
Class AlwaysTrueEventFilter

java.lang.Object
  extended by com.netflix.eventbus.filter.AlwaysTrueEventFilter
All Implemented Interfaces:
com.google.common.base.Predicate<java.lang.Object>, EventFilter

public class AlwaysTrueEventFilter
extends java.lang.Object
implements EventFilter


Field Summary
static AlwaysTrueEventFilter INSTANCE
           
 
Method Summary
 boolean apply(java.lang.Object input)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLanguage()
           
 int hashCode()
           
 java.lang.String serialize()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final AlwaysTrueEventFilter INSTANCE
Method Detail

apply

public boolean apply(@Nullable
                     java.lang.Object input)
Specified by:
apply in interface com.google.common.base.Predicate<java.lang.Object>

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface EventFilter
Returns:
String describing the underlying filter language

serialize

public java.lang.String serialize()
Specified by:
serialize in interface EventFilter
Returns:
String representing the complete filter definition. May be null if the filter is written in code.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface com.google.common.base.Predicate<java.lang.Object>
Overrides:
equals in class java.lang.Object