| Modifier and Type | Class and Description |
|---|---|
| public static class | IgnorePropertiesUtil.
Helper class to encapsulate logic from static |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IgnorePropertiesUtil. | Returns: Checker, if validity checks are needed;null otherwiseSet of property names to ignore (may be null) toIgnore, Set<String> Set of only property names to include (if null, undefined) toInclude)Factory method for creating and return a |
| public static Set | Returns: Resulting set of names, using intersection if neithernull; or the
non-null one (if only one is null); or null if both arguments null.Existing set of names to include, if defined; null means "not defined" prevToInclude, Set<String> New set of names to included, if defined; null means "not defined" newToInclude)Helper that encapsulates logic for combining two sets of "included names": default logic is to do intersection (name must be in both to be included in result) |
| public static boolean | shouldIgnore(Object value, Collection<String> toIgnore, Collection<String> toInclude)
Decide if we need to ignore a property or not, given a set of field to ignore and a set of field to include. |
| IgnorePropertiesUtil | back to summary |
|---|---|
| public IgnorePropertiesUtil() | |
| buildCheckerIfNeeded | back to summary |
|---|---|
| public static IgnorePropertiesUtil. Factory method for creating and return a | |
| combineNamesToInclude | back to summary |
|---|---|
| public static Set Helper that encapsulates logic for combining two sets of "included names": default logic is to do intersection (name must be in both to be included in result) | |
| shouldIgnore | back to summary |
|---|---|
| public static boolean shouldIgnore(Object value, Collection<String> toIgnore, Collection<String> toInclude) Decide if we need to ignore a property or not, given a set of field to ignore and a set of field to include. | |
shouldIgnore method
of util class.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Set | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IgnorePropertiesUtil. | |
| public boolean |
| _toIgnore | back to summary |
|---|---|
| private final Set<String> _toIgnore | |
| _toInclude | back to summary |
|---|---|
| private final Set<String> _toInclude | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Checker | back to summary |
|---|---|
| private Checker(Set<String> toIgnore, Set<String> toInclude) | |
| construct | back to summary |
|---|---|
| public static IgnorePropertiesUtil. | |
| shouldIgnore | back to summary |
|---|---|
| public boolean shouldIgnore(Object propertyName) | |