|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.entityfs.support.filter.AbstractConvenientFilter<EntityView> org.entityfs.util.filter.entity.ReadLockedEntityFilter
public final class ReadLockedEntityFilter
A filter that matches entities that are read locked by the current thread. Write locked entities are always read locked too, so this filter matches both read and write locked entities.
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.
LockedEntityFilter
,
WriteLockedEntityFilter
Field Summary | |
---|---|
static ReadLockedEntityFilter |
FILTER
Singleton filter instance. |
static NotFilter<EntityView> |
NOT_FILTER
Singleton instance for the inversed filter. |
Constructor Summary | |
---|---|
ReadLockedEntityFilter()
|
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 ReadLockedEntityFilter FILTER
public static final NotFilter<EntityView> NOT_FILTER
Constructor Detail |
---|
public ReadLockedEntityFilter()
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 |