public class InFilter<T extends Comparable<T>> extends Object implements Filter<T>
InFilter is a Filter implementation to do filtering the
property which matches to any of the specified values (This is well-known as
SQL 'IN' predicate).
You can get this instance from ComparableProperty#in(Comparable...)
method.ComparableProperty| Constructor and Description |
|---|
InFilter(ComparableProperty<?,T> property,
List<T> values)
Constructs a new
InFilter instance with the specified
ComparableProperty instance and values. |
InFilter(ComparableProperty<?,T> property,
T... values)
Constructs a new
InFilter instance with the specified
ComparableProperty instance and values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Object entity)
Indicates whether the specified entity's property matches to this
InFilter or not. |
Property<?,T> |
property()
Returns the property that this filter targets.
|
String |
toString()
Returns the
String representation of this instance. |
List<T> |
values()
Returns values to be tested.
|
@SafeVarargs public InFilter(ComparableProperty<?,T> property, T... values)
InFilter instance with the specified
ComparableProperty instance and values.property - The metamodel property this filter targets.values - The values this filter indicates.public InFilter(ComparableProperty<?,T> property, List<T> values)
InFilter instance with the specified
ComparableProperty instance and values.property - The metamodel property this filter targets.values - The values this filter indicates.public Property<?,T> property()
property in interface Filter<T extends Comparable<T>>public boolean matches(Object entity)
InFilter or not.matches in interface Filter<T extends Comparable<T>>entity - The entity to be filtered.InFilter or
not.Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.