|
|||||||||
| 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.EntityNamePrefixFilter
public class EntityNamePrefixFilter
This is a filter that matches entities whose names starts with a specific String prefix (case sensitive or insensitive).
Instances of this class are immutable.
| Constructor Summary | |
|---|---|
EntityNamePrefixFilter(String prefix)
Create the filter for the provided prefix. |
|
EntityNamePrefixFilter(String prefix,
boolean caseSensitive)
Create the filter for the provided prefix. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
boolean |
matches(EntityView ev)
Does the filter match the object? |
String |
toString()
|
| Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter |
|---|
and, bitwiseNegate, isCase, not, or, xor |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityNamePrefixFilter(String prefix)
prefix - The prefix that entity names must have to match this
filter.
public EntityNamePrefixFilter(String prefix,
boolean caseSensitive)
prefix - The prefix that entity names must have to match this
filter.caseSensitive - Should the filter be case sensitive?| 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 boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||