public static final class Example.NotNullPropertySelector extends Object implements Example.PropertySelector
Property selector that includes only properties that are not null
Modifier and Type | Field and Description |
---|---|
static Example.NotNullPropertySelector |
INSTANCE
Singleton access
|
Constructor and Description |
---|
NotNullPropertySelector() |
Modifier and Type | Method and Description |
---|---|
boolean |
include(Object object,
String propertyName,
Type type)
Determine whether the given property should be used in the criteria.
|
public static final Example.NotNullPropertySelector INSTANCE
Singleton access
public boolean include(Object object, String propertyName, Type type)
Example.PropertySelector
Determine whether the given property should be used in the criteria.
include
in interface Example.PropertySelector
object
- The property value (from the example bean)propertyName
- The name of the propertytype
- The type of the propertytrue
indicates the property should be included; false
indiates it should not.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.