|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.support.filter.AbstractConvenientFilter<EntityView>
org.entityfs.util.filter.entity.LockedEntityFilter
public final class LockedEntityFilter
A filter that matches entities that are locked (either read or write locked) by the current thread.
An instance of this class does not contain any mutable internal state. Use
the singleton instances FILTER
or NOT_FILTER
instead of
instantiating the class.
ReadLockedEntityFilter
,
WriteLockedEntityFilter
Field Summary | |
---|---|
static LockedEntityFilter |
FILTER
Singleton filter instance. |
static NotFilter<EntityView> |
NOT_FILTER
Singleton instance for the inversed filter. |
Constructor Summary | |
---|---|
LockedEntityFilter()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
boolean |
matches(EntityView ev)
Does the filter match the object? |
ConvenientFilter<EntityView> |
not()
Creates a filter that negates the result from this filter. |
String |
toString()
|
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter |
---|
and, bitwiseNegate, isCase, or, xor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LockedEntityFilter FILTER
public static final NotFilter<EntityView> NOT_FILTER
Constructor Detail |
---|
public LockedEntityFilter()
Method Detail |
---|
public boolean matches(EntityView ev)
Filter
matches
in interface Filter<EntityView>
ev
- The object to match.
true
if the filter matches the object.public ConvenientFilter<EntityView> not()
ConvenientFilter
A filter implementing this method is also recommended to implement a
method called bitwiseNegate
that delegates to this method. That
makes it possible to negate the filter using the ~
operator in a
Groovy script.
not
in interface ConvenientFilter<EntityView>
not
in class AbstractConvenientFilter<EntityView>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |