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