|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="5.5", sinceVersion="4.2") public interface IPortalEventFilter
Filters IPortalEvent
instances, indicating which ones should be
accepted.
PortalEventFilters
provides methods for obtaining commonly used
filters.
Method Summary | |
---|---|
boolean |
accept(IPortalEvent event)
Indicates if the given event is accepted. |
boolean |
equals(Object obj)
Indicates whether this filter accepts the same events as the other filter given. |
int |
hashCode()
Filters that implement equals method must also implement this method to return the same hash codes to the filters they are equal to. |
Method Detail |
---|
boolean accept(IPortalEvent event)
Important: The implementation of this method must not be time consuming, as it may impact the overall time response of the portal.
event
- the event.
boolean equals(Object obj)
This method should return true only if it is known that both filters will accept the same events. If such information is not known, this method should return false.
Note that it is generally necessary to override the hashCode()
method
whenever this method is overridden, so as to maintain the general
contract for the hashCode method, which states that equal objects must
have equal hash codes.
equals
in class Object
obj
- the other filter.
int hashCode()
hashCode
in class Object
equals(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |