com.netflix.eventbus.filter
Class AlwaysTrueEventFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final AlwaysTrueEventFilter INSTANCE
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