public static class PropertyFilter.Or extends Object implements PropertyFilter
PropertyFilter
implementation that is
disjunction of another property filters.PropertyFilter.And, PropertyFilter.NameEndsWith, PropertyFilter.NameSet, PropertyFilter.NameStartsWith, PropertyFilter.Not, PropertyFilter.Or
ALL
Constructor and Description |
---|
Or(PropertyFilter... filters)
Constructs a new
PropertyFilter.Or with the specified
array of property filters. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(PropertyMetaData<?,?> metadata)
Checks whether at least one of the encapsulated filters accepts the
specified property.
|
public Or(PropertyFilter... filters)
PropertyFilter.Or
with the specified
array of property filters.filters
- Array of property filters.public boolean accept(PropertyMetaData<?,?> metadata)
accept
in interface PropertyFilter
metadata
- Property metadata descriptor.true
if at least one of the encapsulated
filters accepts the specified property; false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.