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