|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.ObjectCollectionFilter
public class ObjectCollectionFilter
This filter returns tru if a given object is contained in the underlying collection of objects. It is possible to specify whether to use equality or identity to determine if an object is in the collection. The default is equality check.
| Constructor Summary | |
|---|---|
ObjectCollectionFilter(java.util.Collection objects)
Initialize the new instance with some objects. |
|
ObjectCollectionFilter(java.util.Collection objects,
boolean identity)
Initialize the new instance with some objects. |
|
ObjectCollectionFilter(java.lang.Object[] objects)
Initialize the new instance with some objects. |
|
ObjectCollectionFilter(java.lang.Object[] objects,
boolean identity)
Initialize the new instance with some objects. |
|
| Method Summary | |
|---|---|
boolean |
matches(java.lang.Object object)
Returns true if the given object is in the collection |
void |
negate()
This method reverses the logic of the filter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectCollectionFilter(java.util.Collection objects)
objects - The object to keep in the filter
public ObjectCollectionFilter(java.util.Collection objects,
boolean identity)
objects - The object to keep in the filteridentity - If true an identity comparison is done rather than equality checkpublic ObjectCollectionFilter(java.lang.Object[] objects)
objects - The object to keep in the filter
public ObjectCollectionFilter(java.lang.Object[] objects,
boolean identity)
objects - The object to keep in the filteridentity - If true an identity comparison is done rather than equality check| Method Detail |
|---|
public boolean matches(java.lang.Object object)
matches in interface IObjectFilterobject - Any object or nullpublic void negate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||