public class HasPropertyRule<T extends Component>
extends java.lang.Object
implements java.util.function.Predicate<T>
Constructor and Description |
---|
HasPropertyRule(Property property)
Constructs a new instance with the specified property.
|
HasPropertyRule(Property property,
boolean matchEquals)
Constructs a new instance with the specified property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(Component component) |
public HasPropertyRule(Property property)
property
- a property instance to check forpublic HasPropertyRule(Property property, boolean matchEquals)
property
- the property to matchmatchEquals
- if true, matches must contain an identical property (as indicated by
Property.equals()