public static class PropertyFilter.NameSet extends Object implements PropertyFilter
PropertyFilter
implementation that
accepts only properties with particular names.PropertyFilter.And, PropertyFilter.NameEndsWith, PropertyFilter.NameSet, PropertyFilter.NameStartsWith, PropertyFilter.Not, PropertyFilter.Or
ALL
Constructor and Description |
---|
NameSet(Collection<String> names)
Constructs a new
PropertyFilter.NameSet with the
specified collection of property names. |
NameSet(String... names)
Constructs a new
PropertyFilter.NameSet with the
specified array of property names. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(PropertyMetaData<?,?> metadata)
Determines if set of provided property names contains name of the
specified property.
|
public NameSet(String... names)
PropertyFilter.NameSet
with the
specified array of property names.names
- Array of property names.public NameSet(Collection<String> names)
PropertyFilter.NameSet
with the
specified collection of property names.names
- Collection of property names.public boolean accept(PropertyMetaData<?,?> metadata)
accept
in interface PropertyFilter
metadata
- Property metadata descriptor.true
if set of provided property names contains
name of the specified property; false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.